Home
last modified time | relevance | path

Searched refs:server_fd (Results 1 – 10 of 10) sorted by relevance

/AliOS-Things-master/components/mbedtls/programs/pkey/
A Ddh_client.c94 mbedtls_net_context server_fd; in main() local
107 mbedtls_net_init( &server_fd ); in main()
162 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in main()
177 if( ( ret = mbedtls_net_recv( &server_fd, buf, 2 ) ) != 2 ) in main()
195 if( ( ret = mbedtls_net_recv( &server_fd, buf, n ) ) != (int) n ) in main()
257 if( ( ret = mbedtls_net_send( &server_fd, buf, n ) ) != (int) n ) in main()
294 if( ( ret = mbedtls_net_recv( &server_fd, buf, 16 ) ) != 16 ) in main()
308 mbedtls_net_free( &server_fd ); in main()
/AliOS-Things-master/components/mbedtls/programs/ssl/
A Dmini_client.c184 mbedtls_net_context server_fd; in main() local
199 mbedtls_net_init( &server_fd ); in main()
266 if( ( server_fd.fd = socket( AF_INET, SOCK_STREAM, 0 ) ) < 0 ) in main()
272 if( connect( server_fd.fd, in main()
279 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
300 mbedtls_net_free( &server_fd ); in main()
A Dssl_client1.c100 mbedtls_net_context server_fd; in main() local
118 mbedtls_net_init( &server_fd ); in main()
160 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in main()
205 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
313 mbedtls_net_free( &server_fd ); in main()
A Dssl_client2.c536 mbedtls_net_context server_fd; in main() local
577 mbedtls_net_init( &server_fd ); in main()
1598 ret = idle( &server_fd, ret ); in main()
1703 idle( &server_fd, ret ); in main()
1771 idle( &server_fd, ret ); in main()
1802 idle( &server_fd, ret ); in main()
1866 idle( &server_fd, ret ); in main()
1932 idle( &server_fd, ret ); in main()
1998 idle( &server_fd, ret ); in main()
2036 mbedtls_net_free( &server_fd ); in main()
[all …]
A Ddtls_client.c110 mbedtls_net_context server_fd; in main() local
133 mbedtls_net_init( &server_fd ); in main()
175 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_ADDR, in main()
219 mbedtls_ssl_set_bio( &ssl, &server_fd, in main()
352 mbedtls_net_free( &server_fd ); in main()
A Dssl_mail_client.c371 mbedtls_net_context server_fd; in main() local
400 mbedtls_net_init( &server_fd ); in main()
598 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_name, in main()
651 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
689 ret = write_and_get_response( &server_fd, buf, 0 ); in main()
703 ret = write_and_get_response( &server_fd, buf, len ); in main()
717 ret = write_and_get_response( &server_fd, buf, len ); in main()
853 mbedtls_net_free( &server_fd ); in main()
/AliOS-Things-master/components/mbedtls/example/
A Dtls_example.c114 mbedtls_net_context server_fd; in tls_example() local
129 mbedtls_net_init( &server_fd ); in tls_example()
156 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in tls_example()
201 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in tls_example()
310 mbedtls_net_free( &server_fd ); in tls_example()
/AliOS-Things-master/components/mbedtls/programs/test/
A Dudp_proxy.c733 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local
746 mbedtls_net_init( &server_fd ); in main()
773 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_addr, opt.server_port, in main()
823 if( nb_fds < server_fd.fd ) in main()
824 nb_fds = server_fd.fd; in main()
832 outbuf[0].ctx = &server_fd; in main()
883 FD_SET( server_fd.fd, &read_fds ); in main()
899 &server_fd, &client_fd ) ) != 0 ) in main()
903 if( FD_ISSET( server_fd.fd, &read_fds ) ) in main()
906 &client_fd, &server_fd ) ) != 0 ) in main()
[all …]
/AliOS-Things-master/components/mbedtls/programs/x509/
A Dcert_app.c165 mbedtls_net_context server_fd; in main() local
182 mbedtls_net_init( &server_fd ); in main()
408 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_name, in main()
451 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
494 mbedtls_net_free( &server_fd ); in main()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/misc/
A Drtl8721d_ota.c1957 mbedtls_net_context server_fd;
1973 mbedtls_net_init(&server_fd);
1978 if((ret = mbedtls_net_connect(&server_fd, host, port_str, MBEDTLS_NET_PROTO_TCP)) != 0) {
1983 mbedtls_ssl_set_bio(&ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL);
2115 mbedtls_net_free(&server_fd);

Completed in 17 milliseconds