On Fri, Sep 11, 2009 at 6:31 AM, pedro chaparro <span dir="ltr"><<a href="mailto:pdro07@gmail.com">pdro07@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> hi, in the asio examples there are two daytime examples , one use iostreams and the other one sockets, what criteria do i have to follows to choose one or the other? i've not really clear this concept? thanks<br clear="all"> <font color="#888888"> <br>-- <br>Ing Pedro Alonso Chaparro Valero<br>Ciudad Politecnica de la Innovación<br>iTEAM - Mobile Communications Group<br>Polytechnic University of Valencia<br>C\ Camino de Vera S/N, Edificio 8G<br>46022 Valencia, Spain<br> </font><br>_______________________________________________<br> Boost-users mailing list<br> <a href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a><br> <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br></blockquote><div><br>I have not done any code with iostreams, but conceptually, at a higher level, i believe they're the same: objects that do I/O operations, i.e writes and reads.<br> If you plan to code something that communicates through a network, then you may want to pick the sockets. Otherwise, I think the iostreams would be the choice, although i can't tell you for sure an example of use.<br> <br> Kindly, <br></div></div>-- <br>Matheus Araújo Aguiar<br>Computer Scientist<br><a href="mailto:matheus.pit@gmail.com">matheus.pit@gmail.com</a><br>