Patch for multiple keyserver support

Matthias Urlichs smurf at noris.de
Tue May 1 20:54:02 CEST 2001


Hi,

Dave Dykstra:
> 
> connect(), check for EINPROGRESS from the connect(), and then do a select()
> for writability on the fd with a timeout of however long you want.  Note
> that if the connection is then refused it will come as an error message
> from the next read() or write().  Some older systems may not have

You can also check with getpeername(), which will fail when the socket
isn't connected.

> O_NONBLOCK or EINPROGRESS defines so I'd #ifdef out the code if they're
> missing.
> 
O_NDELAY is an alternate name for O_NONBLOCK in older systems (newer
Unixen may or may not define them identically).

-- 
Matthias Urlichs     |     noris network AG     |     http://smurf.noris.de/




More information about the Gnupg-devel mailing list