Searched refs:newsocket (Results 1 – 6 of 6) sorted by relevance
/external/quake/quake/src/QW/client/ |
D | net_udp.c | 162 int newsocket; in NET_IsClientLegal() local 170 if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) in NET_IsClientLegal() 175 if( bind (newsocket, (void *)&sadr, sizeof(sadr)) == -1) in NET_IsClientLegal() 178 close(newsocket); in NET_IsClientLegal() 181 close(newsocket); in NET_IsClientLegal() 237 int newsocket; in UDP_OpenSocket() local 242 if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) in UDP_OpenSocket() 244 if (ioctl (newsocket, FIONBIO, (char *)&_true) == -1) in UDP_OpenSocket() 258 if( bind (newsocket, (void *)&address, sizeof(address)) == -1) in UDP_OpenSocket() 261 return newsocket; in UDP_OpenSocket()
|
D | net_wins.c | 138 int newsocket; in NET_IsClientLegal() local 146 if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) in NET_IsClientLegal() 151 if( bind (newsocket, (void *)&sadr, sizeof(sadr)) == -1) in NET_IsClientLegal() 154 close(newsocket); in NET_IsClientLegal() 157 close(newsocket); in NET_IsClientLegal() 233 int newsocket; in UDP_OpenSocket() local 238 if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) in UDP_OpenSocket() 241 if (ioctlsocket (newsocket, FIONBIO, &_true) == -1) in UDP_OpenSocket() 257 if( bind (newsocket, (void *)&address, sizeof(address)) == -1) in UDP_OpenSocket() 260 return newsocket; in UDP_OpenSocket()
|
/external/quake/quake/src/WinQuake/ |
D | net_wipx.cpp | 161 int newsocket; in WIPX_OpenSocket() local 171 if ((newsocket = psocket (AF_IPX, SOCK_DGRAM, NSPROTO_IPX)) == INVALID_SOCKET) in WIPX_OpenSocket() 174 if (pioctlsocket (newsocket, FIONBIO, &_true) == -1) in WIPX_OpenSocket() 177 if (psetsockopt(newsocket, SOL_SOCKET, SO_BROADCAST, (char *)&_true, sizeof(_true)) < 0) in WIPX_OpenSocket() 184 if( bind (newsocket, (void *)&address, sizeof(address)) == 0) in WIPX_OpenSocket() 186 ipxsocket[handle] = newsocket; in WIPX_OpenSocket() 193 pclosesocket (newsocket); in WIPX_OpenSocket()
|
D | net_mp.cpp | 151 int newsocket; in MPATH_OpenSocket() local 155 if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) in MPATH_OpenSocket() 158 if (ioctlsocket (newsocket, FIONBIO, &_true) == -1) in MPATH_OpenSocket() 164 if( bind (newsocket, (void *)&address, sizeof(address)) == -1) in MPATH_OpenSocket() 167 return newsocket; in MPATH_OpenSocket() 170 closesocket (newsocket); in MPATH_OpenSocket()
|
D | net_udp.cpp | 229 int newsocket; in UDP_OpenSocket() local 236 if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) in UDP_OpenSocket() 239 if (ioctl (newsocket, FIONBIO, (char *)&_true) == -1) in UDP_OpenSocket() 245 if( bind (newsocket, &address.sockaddr, sizeof(address.in)) == -1) in UDP_OpenSocket() 248 return newsocket; in UDP_OpenSocket() 251 close (newsocket); in UDP_OpenSocket()
|
D | net_wins.cpp | 283 int newsocket; in WINS_OpenSocket() local 287 if ((newsocket = psocket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) in WINS_OpenSocket() 290 if (pioctlsocket (newsocket, FIONBIO, &_true) == -1) in WINS_OpenSocket() 296 if( bind (newsocket, (void *)&address, sizeof(address)) == 0) in WINS_OpenSocket() 297 return newsocket; in WINS_OpenSocket() 301 pclosesocket (newsocket); in WINS_OpenSocket()
|