[ace-users] recv_n and send_n with No Timeout

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Tue Aug 7 03:03:05 CDT 2007

Hi Saul,

>I think I have the answer to my question. I am testing an external
>function that closes the socket (ACE_SOCK_Stream::close()); using this
>method, the recv_n() that had infinite wait time returned; this way if
>the peer crashes and recv_n cannot return, just calling close() will
>make recv_n / send_n to return.
>I anyone thinks this is a bad idea, please let me know.

It's not portable, but as long as you don't need portability you
should be fine.


Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu

More information about the Ace-users mailing list