[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clarification of the isPendingConnection() call.
From: |
Federico Montesino Pouzols |
Subject: |
Re: Clarification of the isPendingConnection() call. |
Date: |
Sun, 20 Apr 2003 14:35:44 +0200 |
User-agent: |
Mutt/1.5.3i |
Hi, isPendingConnection is implemented using
Socket::isPending, so ...
On Sun, Apr 20, 2003 at 12:28:47PM +0100, Jon Wilson wrote:
> 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?
Yes, and if no timeout is specified, TIMEOUT_INF is used, so
it will block till the socket is connected.
> 2) What units is the timeout in? Seconds? Milliseconds or tenths (or
> something else)?
In milliseconds.
> 3) What happens when the connection times out? Is an exception thrown or
> does it just return false?
>
No exception is thrown (at least purposely), it just returns
true or false.
I have added a few notes to this method's documentation in
CVS.
> Thanks for clearing this up for me.
> Jon Wilson
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp