extern int gethostname (char *, int);
extern int close (int);
-extern cvar_t hostname;
-
static int net_acceptsocket = -1; // socket for fielding new connections
static int net_controlsocket;
static int net_broadcastsocket = 0;
Sys_Error ("UDP: ioctlsocket (FIONREAD) failed\n");
if (available)
return net_acceptsocket;
- recvfrom (net_acceptsocket, buff, 0, 0, &from, &fromlen);
+ recvfrom (net_acceptsocket, buff, 0, 0, (struct sockaddr *) &from, &fromlen);
return -1;
}