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.c99 mbedtls_net_context listen_fd, client_fd; in main() local
110 mbedtls_net_init( &listen_fd ); in main()
208 if( ( ret = mbedtls_net_bind( &listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
227 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
265 mbedtls_net_close( &listen_fd ); in main()
401 mbedtls_net_free( &listen_fd ); in main()
Dssl_server.c93 mbedtls_net_context listen_fd, client_fd; in main() local
107 mbedtls_net_init( &listen_fd ); in main()
183 if( ( ret = mbedtls_net_bind( &listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
250 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
377 mbedtls_net_free( &listen_fd ); in main()
Ddtls_server.c102 mbedtls_net_context listen_fd, client_fd; in main() local
120 mbedtls_net_init( &listen_fd ); in main()
196 if( ( ret = mbedtls_net_bind( &listen_fd, BIND_IP, "4433", MBEDTLS_NET_PROTO_UDP ) ) != 0 ) in main()
277 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
406 mbedtls_net_free( &listen_fd ); in main()
Dssl_pthread_server.c316 mbedtls_net_context listen_fd, client_fd; in main() local
346 mbedtls_net_init( &listen_fd ); in main()
455 if( ( ret = mbedtls_net_bind( &listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
479 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
510 mbedtls_net_free( &listen_fd ); in main()
Dssl_server2.c957 static mbedtls_net_context listen_fd, client_fd; variable
966 mbedtls_net_free( &listen_fd ); /* causes mbedtls_net_accept() to abort */ in term_handler()
1411 mbedtls_net_init( &listen_fd ); in main()
3065 if( ( ret = mbedtls_net_bind( &listen_fd, opt.server_addr, opt.server_port, in main()
3111 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
3949 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.c77 mbedtls_net_context listen_fd, client_fd; in main() local
92 mbedtls_net_init( &listen_fd ); in main()
187 if( ( ret = mbedtls_net_bind( &listen_fd, NULL, SERVER_PORT, MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
193 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
317 mbedtls_net_free( &listen_fd ); in main()
/third_party/mbedtls/programs/test/
Dudp_proxy.c807 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local
818 mbedtls_net_init( &listen_fd ); in main()
863 if( ( ret = mbedtls_net_bind( &listen_fd, opt.listen_addr, opt.listen_port, in main()
881 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
899 if( nb_fds < listen_fd.fd ) in main()
900 nb_fds = listen_fd.fd; in main()
959 FD_SET( listen_fd.fd, &read_fds ); in main()
967 if( FD_ISSET( listen_fd.fd, &read_fds ) ) in main()
1008 mbedtls_net_free( &listen_fd ); in main()
/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/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/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()
/third_party/skia/third_party/externals/microhttpd/src/include/
Dmicrohttpd.h2511 MHD_socket listen_fd; member