Mercurial > hg > openttd
changeset 7366:d24ef1eb0df5 draft
(svn r10729) -Fix: some hardware (PS(P|3)) seems to loose the non-blocking state of UDP sockets.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 29 Jul 2007 22:21:26 +0000 (2007-07-29) |
parents | fead570b1076 |
children | b2afa4881812 |
files | src/network/core/udp.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/core/udp.cpp +++ b/src/network/core/udp.cpp @@ -110,6 +110,7 @@ client_len = sizeof(client_addr); /* Try to receive anything */ + SetNonBlocking(this->sock); // Some OSes seem to loose the non-blocking status of the socket nbytes = recvfrom(this->sock, (char*)p.buffer, packet_len, 0, (struct sockaddr *)&client_addr, &client_len); /* We got some bytes for the base header of the packet. */