Fixed nonblocking bug for accept function.
Joshua Allen on Adam's CVS account. My account is still broken.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user