>________________________________
> From: Dietrich Müller <die...@gm...>
>To: cpp...@li...
>Sent: Friday, October 5, 2012 8:24 AM
>Subject: [Cppcms-users] booster::aio::stream_socket connect timeout?
>
>
>Hey,
>is there a timeout implemented during a socket connection?
It has the same timeout behavior as native socket. i.e.
> The problem I currently face is that a strange embedded tcp server
> does not accept, nor reject the request at some point, and a timeout
> that interrupts the request would help a lot.
> thanks guys
>
For this kind of stuff you should use asynchronous programming.
i.e. Use async_connect with callback withing an event loop to get
connection completion notification and use booster::aio::deadline_timer
to manage timeouts
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
|