Home
last modified time | relevance | path

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

/mbedtls-3.4.0/programs/ssl/
Dssl_fork_server.c88 mbedtls_net_context listen_fd, client_fd; in main() local
99 mbedtls_net_init( &listen_fd ); in main()
197 if( ( ret = mbedtls_net_bind( &listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
216 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
254 mbedtls_net_close( &listen_fd ); in main()
390 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()
171 if( ( ret = mbedtls_net_bind( &listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
238 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
365 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()
185 if( ( ret = mbedtls_net_bind( &listen_fd, BIND_IP, "4433", MBEDTLS_NET_PROTO_UDP ) ) != 0 ) in main()
266 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
395 mbedtls_net_free( &listen_fd ); in main()
Dssl_pthread_server.c305 mbedtls_net_context listen_fd, client_fd; in main() local
335 mbedtls_net_init( &listen_fd ); in main()
444 if( ( ret = mbedtls_net_bind( &listen_fd, NULL, "4433", MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
468 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
499 mbedtls_net_free( &listen_fd ); in main()
Dssl_server2.c1038 static mbedtls_net_context listen_fd, client_fd; variable
1047 mbedtls_net_free( &listen_fd ); /* causes mbedtls_net_accept() to abort */ in term_handler()
1567 mbedtls_net_init( &listen_fd ); in main()
3439 if( ( ret = mbedtls_net_bind( &listen_fd, opt.server_addr, opt.server_port, in main()
3485 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
4346 mbedtls_net_free( &listen_fd ); in main()
/mbedtls-3.4.0/programs/pkey/
Ddh_server.c67 mbedtls_net_context listen_fd, client_fd; in main() local
82 mbedtls_net_init( &listen_fd ); in main()
177 if( ( ret = mbedtls_net_bind( &listen_fd, NULL, SERVER_PORT, MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
183 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
307 mbedtls_net_free( &listen_fd ); in main()
/mbedtls-3.4.0/programs/test/
Dudp_proxy.c812 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local
823 mbedtls_net_init( &listen_fd ); in main()
872 if( ( ret = mbedtls_net_bind( &listen_fd, opt.listen_addr, opt.listen_port, in main()
890 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
908 if( nb_fds < listen_fd.fd ) in main()
909 nb_fds = listen_fd.fd; in main()
968 FD_SET( listen_fd.fd, &read_fds ); in main()
976 if( FD_ISSET( listen_fd.fd, &read_fds ) ) in main()
1017 mbedtls_net_free( &listen_fd ); in main()