Home
last modified time | relevance | path

Searched refs:accept_sock (Results 1 – 11 of 11) sorted by relevance

/freebsd/tools/tools/netrate/tcpreceive/
H A Dtcpreceive.c55 handle_connection(int accept_sock) in handle_connection() argument
61 s = accept(accept_sock, NULL, NULL); in handle_connection()
89 int accept_sock; in main() local
91 accept_sock = socket(PF_INET, SOCK_STREAM, 0); in main()
92 if (accept_sock < 0) in main()
101 if (bind(accept_sock, (struct sockaddr *)&sin, sizeof(sin)) < 0) in main()
104 if (listen(accept_sock, -1) < 0) in main()
108 handle_connection(accept_sock); in main()
/freebsd/crypto/openssl/crypto/bio/
H A Dbss_acpt.c26 int accept_sock; member
100 ret->accept_sock = (int)INVALID_SOCKET; in BIO_ACCEPT_new()
124 if (c->accept_sock != (int)INVALID_SOCKET) { in acpt_close_socket()
125 shutdown(c->accept_sock, 2); in acpt_close_socket()
126 closesocket(c->accept_sock); in acpt_close_socket()
127 c->accept_sock = (int)INVALID_SOCKET; in acpt_close_socket()
241 c->accept_sock = s; in acpt_state()
249 if (!BIO_listen(c->accept_sock, in acpt_state()
252 BIO_closesocket(c->accept_sock); in acpt_state()
261 if (!BIO_sock_info(c->accept_sock, BIO_SOCK_INFO_ADDRESS, in acpt_state()
[all …]
H A Dbio_sock2.c314 int BIO_accept_ex(int accept_sock, BIO_ADDR *addr_, int options) in BIO_accept_ex() argument
322 accepted_sock = accept(accept_sock, in BIO_accept_ex()
/freebsd/tools/regression/netinet/tcpstream/
H A Dtcpstream.c118 int i, j, listen_sock, accept_sock; in tcpstream_server() local
140 accept_sock = accept(listen_sock, (struct sockaddr *) in tcpstream_server()
142 if (accept_sock == -1) { in tcpstream_server()
154 len = recv(accept_sock, buffer, in tcpstream_server()
173 close(accept_sock); in tcpstream_server()
/freebsd/tools/regression/netinet/tcpconnect/
H A Dtcpconnect.c56 int listen_sock, accept_sock; in tcpconnect_server() local
85 accept_sock = accept(listen_sock, NULL, NULL); in tcpconnect_server()
86 close(accept_sock); in tcpconnect_server()
/freebsd/tools/regression/sockets/sigpipe/
H A Dsigpipe.c218 int accept_sock, connect_sock; in tcp_pair() local
238 accept_sock = accept(listen_sock, (struct sockaddr *)&sin, &len); in tcp_pair()
239 if (accept_sock < 0) in tcp_pair()
244 sock[0] = accept_sock; in tcp_pair()
/freebsd/crypto/openssl/apps/lib/
H A Ds_socket.c259 int do_server(int *accept_sock, const char *host, const char *port, in do_server() argument
360 if (accept_sock != NULL) in do_server()
361 *accept_sock = asock; in do_server()
/freebsd/crypto/openssl/doc/man3/
H A DBIO_connect.pod16 int BIO_accept_ex(int accept_sock, BIO_ADDR *peer, int options);
41 socket B<accept_sock>. When it gets a connection, the address and
/freebsd/crypto/openssl/apps/include/
H A Ds_apps.h20 int do_server(int *accept_sock, const char *host, const char *port,
/freebsd/crypto/openssl/include/openssl/
H A Dbio.h796 int BIO_accept_ex(int accept_sock, BIO_ADDR *addr, int options);
H A Dbio.h.in773 int BIO_accept_ex(int accept_sock, BIO_ADDR *addr, int options);