Home
last modified time | relevance | path

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

/mbedtls-3.4.0/programs/ssl/
Dssl_pthread_server.c95 mbedtls_net_context client_fd; member
113 mbedtls_net_context *client_fd = &thread_info->client_fd; in handle_ssl_connection() local
133 mbedtls_ssl_set_bio( &ssl, client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in handle_ssl_connection()
254 mbedtls_net_free( client_fd ); in handle_ssl_connection()
262 static int thread_create( mbedtls_net_context *client_fd ) in thread_create() argument
291 memcpy( &threads[i].data.client_fd, client_fd, sizeof( mbedtls_net_context ) ); in thread_create()
305 mbedtls_net_context listen_fd, client_fd; in main() local
336 mbedtls_net_init( &client_fd ); in main()
468 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
479 if( ( ret = thread_create( &client_fd ) ) != 0 ) in main()
[all …]
Dssl_fork_server.c88 mbedtls_net_context listen_fd, client_fd; in main() local
100 mbedtls_net_init( &client_fd ); in main()
210 mbedtls_net_init( &client_fd ); in main()
216 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
241 mbedtls_net_close( &client_fd ); in main()
282 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
389 mbedtls_net_free( &client_fd ); in main()
Dssl_server.c81 mbedtls_net_context listen_fd, client_fd; in main() local
96 mbedtls_net_init( &client_fd ); in main()
228 mbedtls_net_free( &client_fd ); in main()
238 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
245 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
364 mbedtls_net_free( &client_fd ); in main()
Ddtls_server.c91 mbedtls_net_context listen_fd, client_fd; in main() local
110 mbedtls_net_init( &client_fd ); in main()
256 mbedtls_net_free( &client_fd ); in main()
266 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
282 mbedtls_ssl_set_bio( &ssl, &client_fd, in main()
394 mbedtls_net_free( &client_fd ); in main()
Dssl_server2.c1038 static mbedtls_net_context listen_fd, client_fd; variable
1048 mbedtls_net_free( &client_fd ); /* causes net_read() to abort */ in term_handler()
1566 mbedtls_net_init( &client_fd ); in main()
3401 io_ctx.net = &client_fd; in main()
3475 mbedtls_net_free( &client_fd ); in main()
3485 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
3504 ret = mbedtls_net_set_nonblock( &client_fd ); in main()
3506 ret = mbedtls_net_set_block( &client_fd ); in main()
3580 ret = idle( &client_fd, &timer, ret ); in main()
3582 ret = idle( &client_fd, ret ); in main()
[all …]
/mbedtls-3.4.0/programs/pkey/
Ddh_server.c67 mbedtls_net_context listen_fd, client_fd; in main() local
83 mbedtls_net_init( &client_fd ); in main()
183 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
228 if( ( ret = mbedtls_net_send( &client_fd, buf2, 2 ) ) != 2 || in main()
229 ( ret = mbedtls_net_send( &client_fd, buf, buflen ) ) != (int) buflen ) in main()
244 if( ( ret = mbedtls_net_recv( &client_fd, buf, n ) ) != (int) n ) in main()
291 if( ( ret = mbedtls_net_send( &client_fd, buf, 16 ) ) != 16 ) in main()
306 mbedtls_net_free( &client_fd ); in main()
/mbedtls-3.4.0/programs/test/
Dudp_proxy.c812 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local
824 mbedtls_net_init( &client_fd ); in main()
885 mbedtls_net_free( &client_fd ); in main()
890 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
905 nb_fds = client_fd.fd; in main()
920 outbuf[1].ctx = &client_fd; in main()
967 FD_SET( client_fd.fd, &read_fds ); in main()
979 if( FD_ISSET( client_fd.fd, &read_fds ) ) in main()
982 &server_fd, &client_fd ) ) != 0 ) in main()
989 &client_fd, &server_fd ) ) != 0 ) in main()
[all …]