Home
last modified time | relevance | path

Searched refs:accept_fd (Results 1 – 20 of 20) sorted by relevance

/external/strace/tests/
Dnet-y-unix.c111 int accept_fd = do_accept(listen_fd, accept_sa, len); in main() local
112 if (accept_fd < 0) in main()
114 unsigned long accept_inode = inode_of_sockfd(accept_fd); in main()
119 accept_fd, accept_inode); in main()
140 assert(recvfrom(accept_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, NULL) in main()
144 accept_fd, accept_inode, text, in main()
147 assert(close(accept_fd) == 0); in main()
148 printf("close(%d<socket:[%lu]>) = 0\n", accept_fd, accept_inode); in main()
182 accept_fd = do_accept(listen_fd, accept_sa, len); in main()
183 if (accept_fd < 0) in main()
[all …]
Dnet-yy-unix.c112 int accept_fd = do_accept(listen_fd, accept_sa, len); in main() local
113 if (accept_fd < 0) in main()
115 unsigned long accept_inode = inode_of_sockfd(accept_fd); in main()
120 accept_fd, accept_inode, connect_inode, TEST_SOCKET); in main()
139 assert(recvfrom(accept_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, NULL) in main()
143 accept_fd, accept_inode, connect_inode, TEST_SOCKET, text, in main()
150 assert(close(accept_fd) == 0); in main()
152 accept_fd, accept_inode, connect_inode, TEST_SOCKET); in main()
185 accept_fd = do_accept(listen_fd, accept_sa, len); in main()
186 if (accept_fd < 0) in main()
[all …]
Dnet-yy-inet.c127 const int accept_fd = do_accept(listen_fd, accept_sa, len); in main() local
128 if (accept_fd < 0) in main()
136 accept_fd, listen_port, connect_port); in main()
140 if (getpeername(accept_fd, accept_sa, len)) in main()
145 accept_fd, listen_port, connect_port, connect_port, in main()
179 assert(recvfrom(accept_fd, text, sizeof(text) - 1, MSG_WAITALL, in main()
183 accept_fd, listen_port, connect_port, text, in main()
186 assert(close(accept_fd) == 0); in main()
189 accept_fd, listen_port, connect_port); in main()
/external/strace/tests-m32/
Dnet-y-unix.c111 int accept_fd = do_accept(listen_fd, accept_sa, len); in main() local
112 if (accept_fd < 0) in main()
114 unsigned long accept_inode = inode_of_sockfd(accept_fd); in main()
119 accept_fd, accept_inode); in main()
140 assert(recvfrom(accept_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, NULL) in main()
144 accept_fd, accept_inode, text, in main()
147 assert(close(accept_fd) == 0); in main()
148 printf("close(%d<socket:[%lu]>) = 0\n", accept_fd, accept_inode); in main()
182 accept_fd = do_accept(listen_fd, accept_sa, len); in main()
183 if (accept_fd < 0) in main()
[all …]
Dnet-yy-unix.c112 int accept_fd = do_accept(listen_fd, accept_sa, len); in main() local
113 if (accept_fd < 0) in main()
115 unsigned long accept_inode = inode_of_sockfd(accept_fd); in main()
120 accept_fd, accept_inode, connect_inode, TEST_SOCKET); in main()
139 assert(recvfrom(accept_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, NULL) in main()
143 accept_fd, accept_inode, connect_inode, TEST_SOCKET, text, in main()
150 assert(close(accept_fd) == 0); in main()
152 accept_fd, accept_inode, connect_inode, TEST_SOCKET); in main()
185 accept_fd = do_accept(listen_fd, accept_sa, len); in main()
186 if (accept_fd < 0) in main()
[all …]
Dnet-yy-inet.c127 const int accept_fd = do_accept(listen_fd, accept_sa, len); in main() local
128 if (accept_fd < 0) in main()
136 accept_fd, listen_port, connect_port); in main()
140 if (getpeername(accept_fd, accept_sa, len)) in main()
145 accept_fd, listen_port, connect_port, connect_port, in main()
179 assert(recvfrom(accept_fd, text, sizeof(text) - 1, MSG_WAITALL, in main()
183 accept_fd, listen_port, connect_port, text, in main()
186 assert(close(accept_fd) == 0); in main()
189 accept_fd, listen_port, connect_port); in main()
/external/strace/tests-mx32/
Dnet-yy-unix.c112 int accept_fd = do_accept(listen_fd, accept_sa, len); in main() local
113 if (accept_fd < 0) in main()
115 unsigned long accept_inode = inode_of_sockfd(accept_fd); in main()
120 accept_fd, accept_inode, connect_inode, TEST_SOCKET); in main()
139 assert(recvfrom(accept_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, NULL) in main()
143 accept_fd, accept_inode, connect_inode, TEST_SOCKET, text, in main()
150 assert(close(accept_fd) == 0); in main()
152 accept_fd, accept_inode, connect_inode, TEST_SOCKET); in main()
185 accept_fd = do_accept(listen_fd, accept_sa, len); in main()
186 if (accept_fd < 0) in main()
[all …]
Dnet-y-unix.c111 int accept_fd = do_accept(listen_fd, accept_sa, len); in main() local
112 if (accept_fd < 0) in main()
114 unsigned long accept_inode = inode_of_sockfd(accept_fd); in main()
119 accept_fd, accept_inode); in main()
140 assert(recvfrom(accept_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, NULL) in main()
144 accept_fd, accept_inode, text, in main()
147 assert(close(accept_fd) == 0); in main()
148 printf("close(%d<socket:[%lu]>) = 0\n", accept_fd, accept_inode); in main()
182 accept_fd = do_accept(listen_fd, accept_sa, len); in main()
183 if (accept_fd < 0) in main()
[all …]
Dnet-yy-inet.c127 const int accept_fd = do_accept(listen_fd, accept_sa, len); in main() local
128 if (accept_fd < 0) in main()
136 accept_fd, listen_port, connect_port); in main()
140 if (getpeername(accept_fd, accept_sa, len)) in main()
145 accept_fd, listen_port, connect_port, connect_port, in main()
179 assert(recvfrom(accept_fd, text, sizeof(text) - 1, MSG_WAITALL, in main()
183 accept_fd, listen_port, connect_port, text, in main()
186 assert(close(accept_fd) == 0); in main()
189 accept_fd, listen_port, connect_port); in main()
/external/libwebsockets/lib/roles/listen/
Dops-listen.c32 lws_sockfd_type accept_fd = LWS_SOCK_INVALID; in rops_handle_POLLIN_listen() local
86 accept_fd = accept((int)pollfd->fd, in rops_handle_POLLIN_listen()
88 if (accept_fd == LWS_SOCK_INVALID) { in rops_handle_POLLIN_listen()
98 compatible_close(accept_fd); in rops_handle_POLLIN_listen()
102 lws_plat_set_socket_options(wsi->vhost, accept_fd, 0); in rops_handle_POLLIN_listen()
109 accept_fd); in rops_handle_POLLIN_listen()
117 accept_fd); in rops_handle_POLLIN_listen()
130 (void *)(lws_intptr_t)accept_fd, 0)) { in rops_handle_POLLIN_listen()
132 compatible_close(accept_fd); in rops_handle_POLLIN_listen()
145 fd.sockfd = accept_fd; in rops_handle_POLLIN_listen()
/external/libwebsockets/include/libwebsockets/
Dlws-adopt.h49 lws_adopt_socket(struct lws_context *context, lws_sockfd_type accept_fd);
64 lws_adopt_socket_vhost(struct lws_vhost *vh, lws_sockfd_type accept_fd);
174 lws_adopt_socket_readbuf(struct lws_context *context, lws_sockfd_type accept_fd,
200 lws_sockfd_type accept_fd, const char *readbuf,
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sock_fields.c247 static void check_sk_pkt_out_cnt(int accept_fd, int cli_fd) in check_sk_pkt_out_cnt() argument
254 err = bpf_map_lookup_elem(sk_pkt_out_cnt_fd, &accept_fd, &pkt_out_cnt); in check_sk_pkt_out_cnt()
256 err = bpf_map_lookup_elem(sk_pkt_out_cnt10_fd, &accept_fd, in check_sk_pkt_out_cnt()
310 int listen_fd, cli_fd, accept_fd, epfd, err; in test() local
375 accept_fd = accept(listen_fd, NULL, NULL); in test()
376 CHECK(accept_fd == -1, "accept(listen_fd)", "accept_fd:%d errno:%d", in test()
377 accept_fd, errno); in test()
385 init_sk_storage(accept_fd, 2); in test()
389 err = send(accept_fd, DATA, DATA_LEN, 0); in test()
403 check_sk_pkt_out_cnt(accept_fd, cli_fd); in test()
[all …]
/external/libwebsockets/lib/tls/
Dtls-server.c126 lws_server_socket_service_ssl(struct lws *wsi, lws_sockfd_type accept_fd) in lws_server_socket_service_ssl() argument
141 if (accept_fd == LWS_SOCK_INVALID) in lws_server_socket_service_ssl()
147 if (lws_tls_server_new_nonblocking(wsi, accept_fd)) { in lws_server_socket_service_ssl()
148 if (accept_fd != LWS_SOCK_INVALID) in lws_server_socket_service_ssl()
149 compatible_close(accept_fd); in lws_server_socket_service_ssl()
Dprivate-network.h90 lws_server_socket_service_ssl(struct lws *new_wsi, lws_sockfd_type accept_fd);
148 lws_tls_server_new_nonblocking(struct lws *wsi, lws_sockfd_type accept_fd);
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso_bench_rx.c142 int accept_fd = fd; in do_socket() local
144 if (listen(accept_fd, 1)) in do_socket()
147 do_poll(accept_fd, cfg_connect_timeout_ms); in do_socket()
151 fd = accept(accept_fd, NULL, NULL); in do_socket()
154 if (close(accept_fd)) in do_socket()
/external/libwebsockets/lib/core-net/
Dadopt.c374 lws_adopt_socket_vhost(struct lws_vhost *vh, lws_sockfd_type accept_fd) in lws_adopt_socket_vhost() argument
378 fd.sockfd = accept_fd; in lws_adopt_socket_vhost()
384 lws_adopt_socket(struct lws_context *context, lws_sockfd_type accept_fd) in lws_adopt_socket() argument
386 return lws_adopt_socket_vhost(context->vhost_list, accept_fd); in lws_adopt_socket()
695 lws_adopt_socket_readbuf(struct lws_context *context, lws_sockfd_type accept_fd, in lws_adopt_socket_readbuf() argument
698 return adopt_socket_readbuf(lws_adopt_socket(context, accept_fd), in lws_adopt_socket_readbuf()
704 lws_sockfd_type accept_fd, in lws_adopt_socket_vhost_readbuf() argument
707 return adopt_socket_readbuf(lws_adopt_socket_vhost(vhost, accept_fd), in lws_adopt_socket_vhost_readbuf()
Dprivate-lib-core-net.h1102 lws_adopt_socket_vhost(struct lws_vhost *vh, lws_sockfd_type accept_fd);
/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c222 int accept_fd; in ThreadedStartServer() local
252 if ((accept_fd = accept(threaded_server_fd, (struct sockaddr*)(&sa), in ThreadedStartServer()
260 close(accept_fd); in ThreadedStartServer()
/external/libwebsockets/lib/tls/mbedtls/
Dmbedtls-server.c264 lws_tls_server_new_nonblocking(struct lws *wsi, lws_sockfd_type accept_fd) in lws_tls_server_new_nonblocking() argument
275 SSL_set_fd(wsi->tls.ssl, accept_fd); in lws_tls_server_new_nonblocking()
/external/libwebsockets/lib/tls/openssl/
Dopenssl-server.c555 lws_tls_server_new_nonblocking(struct lws *wsi, lws_sockfd_type accept_fd) argument
573 SSL_set_fd(wsi->tls.ssl, (int)(long long)accept_fd);