Searched refs:listen_fd (Results 1 – 7 of 7) sorted by relevance
/mbedtls-3.4.0/programs/ssl/ |
D | ssl_fork_server.c | 88 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()
|
D | ssl_server.c | 81 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()
|
D | dtls_server.c | 91 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()
|
D | ssl_pthread_server.c | 305 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()
|
D | ssl_server2.c | 1038 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/ |
D | dh_server.c | 67 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/ |
D | udp_proxy.c | 812 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()
|