Home
last modified time | relevance | path

Searched refs:listen_fd (Results 1 – 13 of 13) sorted by relevance

/third_party/mbedtls/programs/ssl/
Dssl_fork_server.c88 mbedtls_net_context listen_fd, client_fd; in main() local
99 mbedtls_net_init(&listen_fd); in main()
191 if ((ret = mbedtls_net_bind(&listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_TCP)) != 0) { in main()
208 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main()
242 mbedtls_net_close(&listen_fd); in main()
368 mbedtls_net_free(&listen_fd); in main()
Dssl_server.c81 mbedtls_net_context listen_fd, client_fd; in main() local
95 mbedtls_net_init(&listen_fd); in main()
167 if ((ret = mbedtls_net_bind(&listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_TCP)) != 0) { in main()
229 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main()
345 mbedtls_net_free(&listen_fd); in main()
Ddtls_server.c91 mbedtls_net_context listen_fd, client_fd; in main() local
109 mbedtls_net_init(&listen_fd); in main()
186 if ((ret = mbedtls_net_bind(&listen_fd, BIND_IP, "4433", MBEDTLS_NET_PROTO_UDP)) != 0) { in main()
261 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main()
385 mbedtls_net_free(&listen_fd); in main()
Dssl_pthread_server.c293 mbedtls_net_context listen_fd, client_fd; in main() local
323 mbedtls_net_init(&listen_fd); in main()
426 if ((ret = mbedtls_net_bind(&listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_TCP)) != 0) { in main()
448 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main()
477 mbedtls_net_free(&listen_fd); in main()
Dssl_server2.c1055 static mbedtls_net_context listen_fd, client_fd; variable
1064 mbedtls_net_free(&listen_fd); /* causes mbedtls_net_accept() to abort */ in term_handler()
1597 mbedtls_net_init(&listen_fd); in main()
3290 if ((ret = mbedtls_net_bind(&listen_fd, opt.server_addr, opt.server_port, in main()
3333 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main()
4165 mbedtls_net_free(&listen_fd); in main()
/third_party/ltp/testcases/network/lib6/
Dasapi_01.c336 static int listen_fd, connect_fd; variable
340 connect_fd = accept(listen_fd, 0, 0); in ilistener()
341 close(listen_fd); in ilistener()
351 listen_fd = SAFE_SOCKET(NULL, pf, type, proto); in isocketpair()
355 SAFE_BIND(NULL, listen_fd, (struct sockaddr *)&sin4, sizeof(sin4)); in isocketpair()
357 SAFE_LISTEN(NULL, listen_fd, 10); in isocketpair()
360 SAFE_GETSOCKNAME(NULL, listen_fd, (struct sockaddr *)&sin4, &namelen); in isocketpair()
/third_party/mbedtls/programs/pkey/
Ddh_server.c67 mbedtls_net_context listen_fd, client_fd; in main() local
82 mbedtls_net_init(&listen_fd); in main()
170 if ((ret = mbedtls_net_bind(&listen_fd, NULL, SERVER_PORT, MBEDTLS_NET_PROTO_TCP)) != 0) { in main()
175 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main()
294 mbedtls_net_free(&listen_fd); in main()
/third_party/mbedtls/programs/test/
Dudp_proxy.c778 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local
789 mbedtls_net_init(&listen_fd); in main()
836 if ((ret = mbedtls_net_bind(&listen_fd, opt.listen_addr, opt.listen_port, in main()
853 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main()
871 if (nb_fds < listen_fd.fd) { in main()
872 nb_fds = listen_fd.fd; in main()
927 FD_SET(listen_fd.fd, &read_fds); in main()
934 if (FD_ISSET(listen_fd.fd, &read_fds)) { in main()
974 mbedtls_net_free(&listen_fd); in main()
/third_party/EGL/extensions/KHR/
DEGL_KHR_stream_cross_process_fd.txt352 int listen_fd;
363 listen_fd = socket(PF_UNIX, SOCK_STREAM, 0);
364 if (listen_fd < 0) FATAL_ERROR();
374 if (bind(listen_fd,
379 if (listen(listen_fd, 1)) FATAL_ERROR();
382 listen_fd,
385 close(listen_fd);
/third_party/skia/third_party/externals/egl-registry/extensions/KHR/
DEGL_KHR_stream_cross_process_fd.txt352 int listen_fd;
363 listen_fd = socket(PF_UNIX, SOCK_STREAM, 0);
364 if (listen_fd < 0) FATAL_ERROR();
374 if (bind(listen_fd,
379 if (listen(listen_fd, 1)) FATAL_ERROR();
382 listen_fd,
385 close(listen_fd);
/third_party/skia/third_party/externals/microhttpd/src/include/
Dmicrohttpd.h2511 MHD_socket listen_fd; member
/third_party/skia/third_party/externals/microhttpd/src/testcurl/
Dtest_get_sendfile.c417 if (0 != getsockname(di->listen_fd, (struct sockaddr *) &addr, &addr_len)) in testUnknownPortGet()
Dtest_get.c415 if (0 != getsockname(di->listen_fd, (struct sockaddr *) &addr, &addr_len)) in testUnknownPortGet()