Lines Matching refs:newsock
1094 server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s) argument
1198 *newsock = accept(listen_socks[i],
1200 if (*newsock == -1) {
1209 if (unset_nonblock(*newsock) == -1) {
1210 close(*newsock);
1214 char *laddr = get_local_ipaddr(*newsock);
1215 char *raddr = get_peer_ipaddr(*newsock);
1220 raddr, get_peer_port(*newsock),
1221 laddr, get_local_port(*newsock));
1225 (void)write(*newsock, msg, strlen(msg));
1226 close(*newsock);
1230 close(*newsock);
1238 close(*newsock);
1266 *sock_in = *newsock;
1267 *sock_out = *newsock;
1299 *sock_in = *newsock;
1300 *sock_out = *newsock;
1335 close(*newsock);
1493 int sock_in = -1, sock_out = -1, newsock = -1; local
2025 &newsock, config_s);
2050 sock_in, sock_out, newsock, startup_pipe, config_s[0]);
2051 dup2(newsock, STDIN_FILENO);
2074 newsock = sock_out = sock_in = dup(STDIN_FILENO);
2082 sock_in, sock_out, newsock, startup_pipe, config_s[0]);