bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clarification of the isPendingConnection() call.


From: Jon Wilson
Subject: Clarification of the isPendingConnection() call.
Date: Sun, 20 Apr 2003 12:28:47 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

I am trying to implement the TCPSocket's isPendingConnection() call, however, I can't work out form the docs how it works, and the source is a little long for just a minor thing.
I have a few questions about it...
1) Does the call block until the timeout is reached or the socket connected?
2) What units is the timeout in? Seconds? Milliseconds or tenths (or something else)? 3) What happens when the connection times out? Is an exception thrown or does it just return false?

Thanks for clearing this up for me.
Jon Wilson





reply via email to

[Prev in Thread] Current Thread [Next in Thread]