Lines Matching defs:sock
146 int sock;
242 sock = xsocket(lsa->sa.sa_family, tcp ? SOCK_STREAM : SOCK_DGRAM, 0);
243 setsockopt_reuseaddr(sock);
245 xbind(sock, &lsa->sa, sa_len);
247 xlisten(sock, backlog);
249 socket_want_pktinfo(sock);
250 /* ndelay_off(sock); - it is the default I think? */
287 conn = accept(sock, &remote.sa, &remote.len);
292 conn = recv_from_to(sock, NULL, 0, MSG_PEEK, &remote.sa, &local.sa, sa_len);
300 xmove_fd(tcp ? conn : sock, 0);
335 sock = xsocket(lsa->sa.sa_family, tcp ? SOCK_STREAM : SOCK_DGRAM, 0);
336 setsockopt_reuseaddr(sock);
337 xbind(sock, &lsa->sa, sa_len);
338 socket_want_pktinfo(sock);
368 close(sock);