Home
last modified time | relevance | path

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

/net-tools-2.7.6/mbedtls-2.4.0/programs/ssl/
Dssl_pthread_server.c108 mbedtls_net_context client_fd; member
126 mbedtls_net_context *client_fd = &thread_info->client_fd; in handle_ssl_connection() local
146 mbedtls_ssl_set_bio( &ssl, client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in handle_ssl_connection()
267 mbedtls_net_free( client_fd ); in handle_ssl_connection()
275 static int thread_create( mbedtls_net_context *client_fd ) in thread_create() argument
304 memcpy( &threads[i].data.client_fd, client_fd, sizeof( mbedtls_net_context ) ); in thread_create()
318 mbedtls_net_context listen_fd, client_fd; in main() local
349 mbedtls_net_init( &client_fd ); in main()
480 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
490 if( ( ret = thread_create( &client_fd ) ) != 0 ) in main()
[all …]
Dssl_server.c96 mbedtls_net_context listen_fd, client_fd; in main() local
111 mbedtls_net_init( &client_fd ); in main()
242 mbedtls_net_free( &client_fd ); in main()
252 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
259 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
378 mbedtls_net_free( &client_fd ); in main()
Dssl_fork_server.c99 mbedtls_net_context listen_fd, client_fd; in main() local
111 mbedtls_net_init( &client_fd ); in main()
220 mbedtls_net_init( &client_fd ); in main()
226 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
291 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
396 mbedtls_net_free( &client_fd ); in main()
Ddtls_server.c95 mbedtls_net_context listen_fd, client_fd; in main() local
114 mbedtls_net_init( &client_fd ); in main()
259 mbedtls_net_free( &client_fd ); in main()
269 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
285 mbedtls_ssl_set_bio( &ssl, &client_fd, in main()
397 mbedtls_net_free( &client_fd ); in main()
Dssl_server2.c766 static mbedtls_net_context listen_fd, client_fd; variable
776 mbedtls_net_free( &client_fd ); /* causes net_read() to abort */ in term_handler()
846 mbedtls_net_init( &client_fd ); in main()
1835 mbedtls_ssl_set_bio( &ssl, &client_fd, my_send, my_recv, NULL ); in main()
1837 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, in main()
1872 mbedtls_net_free( &client_fd ); in main()
1882 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
1899 ret = mbedtls_net_set_nonblock( &client_fd ); in main()
1901 ret = mbedtls_net_set_block( &client_fd ); in main()
2278 mbedtls_net_free( &client_fd ); in main()
/net-tools-2.7.6/mbedtls-2.4.0/programs/pkey/
Ddh_server.c76 mbedtls_net_context listen_fd, client_fd; in main() local
90 mbedtls_net_init( &client_fd ); in main()
181 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
222 if( ( ret = mbedtls_net_send( &client_fd, buf2, 2 ) ) != 2 || in main()
223 ( ret = mbedtls_net_send( &client_fd, buf, buflen ) ) != (int) buflen ) in main()
237 if( ( ret = mbedtls_net_recv( &client_fd, buf, n ) ) != (int) n ) in main()
280 if( ( ret = mbedtls_net_send( &client_fd, buf, 16 ) ) != 16 ) in main()
290 mbedtls_net_free( &client_fd ); in main()
/net-tools-2.7.6/mbedtls-2.4.0/programs/test/
Dudp_proxy.c473 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local
479 mbedtls_net_init( &client_fd ); in main()
536 mbedtls_net_free( &client_fd ); in main()
541 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
556 nb_fds = client_fd.fd; in main()
567 FD_SET( client_fd.fd, &read_fds ); in main()
579 if( FD_ISSET( client_fd.fd, &read_fds ) ) in main()
582 &server_fd, &client_fd ) ) != 0 ) in main()
589 &client_fd, &server_fd ) ) != 0 ) in main()
606 mbedtls_net_free( &client_fd ); in main()
/net-tools-2.7.6/
Ddtls-server.c106 mbedtls_net_context listen_fd, client_fd; in main() local
166 mbedtls_net_init(&client_fd); in main()
295 mbedtls_net_free(&client_fd); in main()
305 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main()
322 mbedtls_ssl_set_bio(&ssl, &client_fd, in main()
434 mbedtls_net_free(&client_fd); in main()