Home
last modified time | relevance | path

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

/AliOS-Things-master/components/mbedtls/programs/ssl/
A Dssl_pthread_server.c124 mbedtls_net_context client_fd; member
142 mbedtls_net_context *client_fd = &thread_info->client_fd; in handle_ssl_connection() local
162 mbedtls_ssl_set_bio( &ssl, client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in handle_ssl_connection()
283 mbedtls_net_free( client_fd ); in handle_ssl_connection()
291 static int thread_create( mbedtls_net_context *client_fd ) in thread_create() argument
320 memcpy( &threads[i].data.client_fd, client_fd, sizeof( mbedtls_net_context ) ); in thread_create()
334 mbedtls_net_context listen_fd, client_fd; in main() local
365 mbedtls_net_init( &client_fd ); in main()
496 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
506 if( ( ret = thread_create( &client_fd ) ) != 0 ) in main()
[all …]
A Dssl_server.c111 mbedtls_net_context listen_fd, client_fd; in main() local
126 mbedtls_net_init( &client_fd ); in main()
257 mbedtls_net_free( &client_fd ); in main()
267 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
274 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
393 mbedtls_net_free( &client_fd ); in main()
A Ddtls_server.c119 mbedtls_net_context listen_fd, client_fd; in main() local
138 mbedtls_net_init( &client_fd ); in main()
283 mbedtls_net_free( &client_fd ); in main()
293 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
309 mbedtls_ssl_set_bio( &ssl, &client_fd, in main()
421 mbedtls_net_free( &client_fd ); in main()
A Dssl_fork_server.c116 mbedtls_net_context listen_fd, client_fd; in main() local
128 mbedtls_net_init( &client_fd ); in main()
237 mbedtls_net_init( &client_fd ); in main()
243 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
308 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
415 mbedtls_net_free( &client_fd ); in main()
A Dssl_server2.c868 static mbedtls_net_context listen_fd, client_fd; variable
1264 mbedtls_net_init( &client_fd ); in main()
2589 mbedtls_net_free( &client_fd ); in main()
2684 ret = idle( &client_fd, ret ); in main()
2805 idle( &client_fd, ret ); in main()
2974 idle( &client_fd, &timer, ret ); in main()
2976 idle( &client_fd, ret ); in main()
3038 idle( &client_fd, ret ); in main()
3057 idle( &client_fd, &timer, ret ); in main()
3059 idle( &client_fd, ret ); in main()
[all …]
/AliOS-Things-master/components/mbedtls/programs/pkey/
A Ddh_server.c94 mbedtls_net_context listen_fd, client_fd; in main() local
110 mbedtls_net_init( &client_fd ); in main()
211 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
256 if( ( ret = mbedtls_net_send( &client_fd, buf2, 2 ) ) != 2 || in main()
257 ( ret = mbedtls_net_send( &client_fd, buf, buflen ) ) != (int) buflen ) in main()
272 if( ( ret = mbedtls_net_recv( &client_fd, buf, n ) ) != (int) n ) in main()
315 if( ( ret = mbedtls_net_send( &client_fd, buf, 16 ) ) != 16 ) in main()
330 mbedtls_net_free( &client_fd ); in main()
/AliOS-Things-master/components/mbedtls/programs/test/
A Dudp_proxy.c733 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local
745 mbedtls_net_init( &client_fd ); in main()
802 mbedtls_net_free( &client_fd ); in main()
807 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
822 nb_fds = client_fd.fd; in main()
837 outbuf[1].ctx = &client_fd; in main()
884 FD_SET( client_fd.fd, &read_fds ); in main()
896 if( FD_ISSET( client_fd.fd, &read_fds ) ) in main()
899 &server_fd, &client_fd ) ) != 0 ) in main()
906 &client_fd, &server_fd ) ) != 0 ) in main()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/
A Dwifi_simple_config.c1337 int client_fd = -1; in simple_config_softap_config() local
1342 client_fd = accept(softAP_socket, (struct sockaddr *) &from, &fromLen); in simple_config_softap_config()
1344 if(client_fd < 0) in simple_config_softap_config()
1359 ret = recv(client_fd, recv_buf, sizeof(recv_buf), MSG_DONTWAIT); in simple_config_softap_config()
1360 getsockopt(client_fd, SOL_SOCKET, SO_ERROR, &sock_err, &err_len); in simple_config_softap_config()
1382 … if(send(client_fd, softAP_decode_ctx -> nonceB, sizeof(softAP_decode_ctx -> nonceB), 0) < 0) in simple_config_softap_config()
1390 if(send(client_fd, "OK", 2, 0) < 0) in simple_config_softap_config()
1405 if(send(client_fd, softAP_ack_content, sizeof(softAP_ack_content), 0) <= 0) in simple_config_softap_config()
1419 close(client_fd); in simple_config_softap_config()

Completed in 17 milliseconds