Fixed nonblocking bug for accept function.

Joshua Allen on Adam's CVS account.  My account is still broken.
This commit is contained in:
Adam Lowman
2004-07-18 23:37:48 +00:00
parent 425f51f509
commit e9327c9bb8
+3
View File
@@ -100,6 +100,9 @@ bool EzSockets::listen() {
#endif
bool EzSockets::accept(EzSockets &socket) {
if (!blocking && !CanRead())
return false;
int length = sizeof(socket);
socket.sock = ::accept(sock,(struct sockaddr*) &socket.addr,(socklen_t*) &length);