we use closesocket to close a socket in windows now.

origin
stpohle 21 years ago
parent 14b216577d
commit af3c94537c

@ -1,4 +1,4 @@
/* $Id: udp.c,v 1.11 2004/01/06 19:52:02 stpohle Exp $ */
/* $Id: udp.c,v 1.12 2004/11/29 09:45:53 stpohle Exp $ */
/* udp.c code for the network
File Version 0.2
*/
@ -47,7 +47,11 @@ void
udp_close (int sock)
{
if (sock != -1)
#ifdef _WIN32
closesocket(sock);
#else
close (sock);
#endif
sock = -1;
};

Loading…
Cancel
Save