Searched refs:listen_fd (Results 1 - 10 of 10) sorted by relevance

/freebsd-9.3-release/tools/regression/file/newfileops_on_fork/
H A Dnewfileops_on_fork.c55 static int listen_fd; variable
62 accept_fd = accept(listen_fd, NULL, NULL);
84 * listen_fd+1, and get back EBADF if it's not a valid descriptor,
87 if (ftruncate(listen_fd + 1, 0 < 0)) {
104 listen_fd = socket(PF_INET, SOCK_STREAM, 0);
105 if (listen_fd < 0)
112 if (bind(listen_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0)
114 if (listen(listen_fd, -1) <0)
/freebsd-9.3-release/tools/regression/netinet/tcpsocktimewait/
H A Dtcpsocktimewait.c54 tcp_server(pid_t partner, int listen_fd) argument
58 accept_fd = accept(listen_fd, NULL, NULL);
66 close(listen_fd);
114 int listen_fd; local
127 listen_fd = socket(PF_INET, SOCK_STREAM, 0);
128 if (listen_fd < 0)
140 if (bind(listen_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0)
143 if (listen(listen_fd, -1) < 0)
153 if (getsockname(listen_fd, (struct sockaddr *)&sin, &len) < 0)
164 tcp_server(child_pid, listen_fd);
[all...]
/freebsd-9.3-release/tools/regression/netinet/tcpsockclosebeforeaccept/
H A Dtcpsockclosebeforeaccept.c72 int error, listen_fd, accept_fd; local
75 listen_fd = socket(PF_INET, SOCK_STREAM, 0);
76 if (listen_fd < 0) {
89 if (bind(listen_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) {
96 if (listen(listen_fd, -1) < 0) {
105 accept_fd = accept(listen_fd, NULL, NULL);
113 close(listen_fd);
/freebsd-9.3-release/tools/regression/netinet/tcpdrop/
H A Dtcpdrop.c71 tcp_server(pid_t partner, int listen_fd) argument
77 accept_fd = accept(listen_fd, NULL, NULL);
118 close(listen_fd);
207 int listen_fd; local
211 listen_fd = socket(PF_INET, SOCK_STREAM, 0);
212 if (listen_fd < 0)
224 if (bind(listen_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0)
227 if (listen(listen_fd, -1) < 0)
237 if (getsockname(listen_fd, (struct sockaddr *)&sin, &len) < 0)
251 tcp_server(parent_pid, listen_fd);
[all...]
/freebsd-9.3-release/crypto/openssl/demos/tunala/
H A Dip.c144 int ip_accept_connection(int listen_fd) argument
146 return accept(listen_fd, NULL, NULL);
H A Dtunala.h233 int ip_accept_connection(int listen_fd);
H A Dtunala.c62 int listen_fd; member in struct:_tunala_world_t
550 if ((world.listen_fd = ip_create_listener(listenhost)) == -1)
571 selector_add_listener(&world.selector, world.listen_fd);
592 && (selector_get_listener(&world.selector, world.listen_fd, &newfd) ==
/freebsd-9.3-release/tools/tools/netrate/tcpp/
H A Dtcpp_server.c77 tcpp_server_newconn(int listen_fd) argument
83 fd = accept(listen_fd, NULL, NULL);
/freebsd-9.3-release/crypto/heimdal/lib/kadm5/
H A Dipropd_master.c742 int signal_fd, listen_fd; local
819 listen_fd = make_listen_socket (context, port_str);
833 if (signal_fd >= FD_SETSIZE || listen_fd >= FD_SETSIZE)
839 FD_SET(listen_fd, &readset);
840 max_fd = max(max_fd, listen_fd);
918 if (ret && FD_ISSET(listen_fd, &readset)) {
919 add_slave (context, keytab, &slaves, listen_fd);
/freebsd-9.3-release/contrib/pf/ftp-proxy/
H A Dftp-proxy.c383 handle_connection(const int listen_fd, short event __unused, void *ev __unused) argument
398 if ((client_fd = accept(listen_fd, client_sa, &len)) < 0) {

Completed in 175 milliseconds