Boost logo

Boost Users :

Subject: Re: [Boost-users] Simple telnet client demonstration with boost asio asynchronous I/O
From: Andrew Maclean (andrew.amaclean_at_[hidden])
Date: 2008-09-29 22:11:19


Here is a CMakeLists.txt file that will let you use CMake
(http://www.cmake.org) to create either a visual studio solution or a
kdevelop/unix makefile solution. Your code builds with no errors using
Visual Studio 2008 and (of course) Linux (Debian), I haven't tried a
mac.

Andrerw

On Tue, Sep 30, 2008 at 10:51 AM, Jeff Gray
<jeffg_at_[hidden]> wrote:
> Roland Bock wrote:
>> thanks, I am going to dive into Boost::Asio myself, soon, and will come
>> back to your example then :-)
>>
>> Just wondering (while being aware, that this is not a fully fledged
>> telnet client):
>> I tried to connect to localhost, port 23. There is no service running,
>> so I would have expected the program to terminate (it terminates when I
>> specify a host which does not exist). I even sent 800MB of XML data into
>> the program. It did not complain and wrote it to Nirvana, I guess :-)
>
> You're quite right - I haven't tested this code for failure like this.
> My initial thought is that it probably silently calls the close function
> and exits the communication thread without exiting the application.
>
> I'll look at adding this resubmitting the code - it should be a
> straightforward change.
>
> Jeff
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
___________________________________________
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney  2006  NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.acfr.usyd.edu.au/
___________________________________________



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net