hi, i need to implement a non-blocking socket connection on a TServerSocket. i set this up using SetOption(kNoBlock, 1). everything works fine, however i get the following error messages when there is no client socket connected: SysError in <TUnixSystem::AcceptConnection>: accept (Resource temporarily unavailable) SysError in <TUnixSystem::GetPeerName>: getpeername (Bad file number) looking at the source code, i see that in TUnixSystem::AcceptConnection(), which is called by TServerSocket::Accept() there is no check on the EWOULDBLOCK error code which will presumably be set for non-blocking sockets. i was wondering if i am trying to implement something in a roundabout way or if this was an ommission? thanks, patrick.
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET