Searched refs:huntsocket (Results 1 – 5 of 5) sorted by relevance
/netbsd-src/games/hunt/hunt/ |
H A D | connect.c | 55 (void) write(huntsocket, &uid, sizeof(uid)); in do_connect() 57 (void) write(huntsocket, name, namelen); in do_connect() 58 (void) write(huntsocket, &team, 1); in do_connect() 59 (void) write(huntsocket, &wire_status, sizeof(wire_status)); in do_connect() 61 (void) write(huntsocket, Buf, WIRE_NAMELEN); in do_connect() 74 (void) write(huntsocket, &mode, sizeof mode); in do_connect()
|
H A D | hunt.c | 79 /*static*/ int huntsocket; variable 298 huntsocket = socket(SOCK_FAMILY, SOCK_STREAM, 0); in main() 299 if (huntsocket < 0) in main() 302 if (setsockopt(huntsocket, SOL_SOCKET, SO_USELOOPBACK, in main() 306 if (connect(huntsocket, (struct sockaddr *) &Daemon, in main() 315 } while (close(huntsocket) == 0); in main() 321 if ((huntsocket = socket(SOCK_FAMILY, SOCK_STREAM, 0)) < 0) in main() 332 if (connect(huntsocket, &Daemon, DAEMON_SIZE) < 0) { in main() 339 (void) close(huntsocket); in main() 340 if ((huntsocket = socket(SOCK_FAMILY, SOCK_STREAM, in main() [all …]
|
H A D | playit.c | 94 result = read(huntsocket, &version, sizeof(version)); in playit() 192 (void) close(huntsocket); in playit() 208 set[0].fd = huntsocket; in getchr() 223 icnt = read(huntsocket, ibuf, sizeof ibuf); in getchr() 274 (void) write(huntsocket, inp, count); in send_stuff() 438 result = read(huntsocket, &version, sizeof(version)); in do_message() 448 if (write(huntsocket, Send_message, strlen(Send_message)) < 0) { in do_message() 453 (void) close(huntsocket); in do_message()
|
H A D | hunt_private.h | 53 extern int huntsocket;
|
H A D | otto.c | 220 (void) write(huntsocket, command, comlen); in otto()
|