Home
last modified time | relevance | path

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

/third_party/libuv/test/
Dtest-poll-oob.c39 static uv_os_fd_t server_fd; variable
104 n = recv(server_fd, &buffer, 5, 0); in poll_cb()
116 if (fd == server_fd) { in poll_cb()
118 n = recv(server_fd, &buffer, 3, 0); in poll_cb()
140 ASSERT(0 == uv_fileno((uv_handle_t*) &peer_handle, &server_fd)); in connection_cb()
142 ASSERT(0 == uv_poll_init_socket(uv_default_loop(), &poll_req[1], server_fd)); in connection_cb()
150 r = send(server_fd, "hello", 5, MSG_OOB); in connection_cb()
155 r = send(server_fd, "world", 5, 0); in connection_cb()
/third_party/mbedtls/programs/pkey/
Ddh_client.c77 mbedtls_net_context server_fd; in main() local
90 mbedtls_net_init( &server_fd ); in main()
144 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in main()
159 if( ( ret = mbedtls_net_recv( &server_fd, buf, 2 ) ) != 2 ) in main()
177 if( ( ret = mbedtls_net_recv( &server_fd, buf, n ) ) != (int) n ) in main()
240 if( ( ret = mbedtls_net_send( &server_fd, buf, n ) ) != (int) n ) in main()
279 if( ( ret = mbedtls_net_recv( &server_fd, buf, 16 ) ) != 16 ) in main()
295 mbedtls_net_free( &server_fd ); in main()
/third_party/mbedtls/programs/ssl/
Dmini_client.c167 mbedtls_net_context server_fd; in main() local
182 mbedtls_net_init( &server_fd ); in main()
249 if( ( server_fd.fd = socket( AF_INET, SOCK_STREAM, 0 ) ) < 0 ) in main()
255 if( connect( server_fd.fd, in main()
262 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
283 mbedtls_net_free( &server_fd ); in main()
Dssl_client1.c83 mbedtls_net_context server_fd; in main() local
101 mbedtls_net_init( &server_fd ); in main()
143 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in main()
188 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
300 mbedtls_net_free( &server_fd ); in main()
Ddtls_client.c94 mbedtls_net_context server_fd; in main() local
117 mbedtls_net_init( &server_fd ); in main()
159 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_ADDR, in main()
204 mbedtls_ssl_set_bio( &ssl, &server_fd, in main()
341 mbedtls_net_free( &server_fd ); in main()
Dssl_client2.c653 mbedtls_net_context server_fd; in main() local
757 mbedtls_net_init( &server_fd ); in main()
2015 io_ctx.net = &server_fd; in main()
2080 if( ( ret = mbedtls_net_connect( &server_fd, in main()
2091 ret = mbedtls_net_set_nonblock( &server_fd ); in main()
2093 ret = mbedtls_net_set_block( &server_fd ); in main()
2138 ret = idle( &server_fd, &timer, ret ); in main()
2140 ret = idle( &server_fd, ret ); in main()
2431 idle( &server_fd, &timer, ret ); in main()
2433 idle( &server_fd, ret ); in main()
[all …]
Dssl_mail_client.c362 mbedtls_net_context server_fd; in main() local
391 mbedtls_net_init( &server_fd ); in main()
587 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_name, in main()
640 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
678 ret = write_and_get_response( &server_fd, buf, 0 ); in main()
692 ret = write_and_get_response( &server_fd, buf, len ); in main()
706 ret = write_and_get_response( &server_fd, buf, len ); in main()
842 mbedtls_net_free( &server_fd ); in main()
/third_party/mbedtls/port/src/
Dtls_client.c53 mbedtls_net_init(&session->server_fd); in MbedtlsClientInit()
75 mbedtls_net_free(&session->server_fd); in MbedtlsClientClose()
140 …int ret = mbedtls_net_connect(&session->server_fd, session->host, session->port, MBEDTLS_NET_PROTO… in MbedtlsClientConnect()
145 LOGD("Connected %s:%s fd:%d, success...", session->host, session->port, session->server_fd.fd); in MbedtlsClientConnect()
147 … mbedtls_ssl_set_bio(&session->ssl, &session->server_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in MbedtlsClientConnect()
/third_party/mbedtls/programs/test/
Dudp_proxy.c807 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local
820 mbedtls_net_init( &server_fd ); in main()
847 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_addr, opt.server_port, in main()
897 if( nb_fds < server_fd.fd ) in main()
898 nb_fds = server_fd.fd; in main()
906 outbuf[0].ctx = &server_fd; in main()
957 FD_SET( server_fd.fd, &read_fds ); in main()
973 &server_fd, &client_fd ) ) != 0 ) in main()
977 if( FD_ISSET( server_fd.fd, &read_fds ) ) in main()
980 &client_fd, &server_fd ) ) != 0 ) in main()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/festival/
Dgstfestival.c220 fd = festival->info->server_fd; in read_response()
275 f = dup (festival->info->server_fd); in gst_festival_chain()
344 info->server_fd = -1; in festival_default_info()
457 festival->info->server_fd = in gst_festival_open()
460 if (festival->info->server_fd == -1) { in gst_festival_open()
475 if (festival->info->server_fd != -1) in gst_festival_close()
476 close (festival->info->server_fd); in gst_festival_close()
Dgstfestival.h82 int server_fd; member
/third_party/mbedtls/programs/x509/
Dcert_app.c148 mbedtls_net_context server_fd; in main() local
165 mbedtls_net_init( &server_fd ); in main()
391 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_name, in main()
434 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
481 mbedtls_net_free( &server_fd ); in main()
/third_party/grpc/test/core/iomgr/
Dtcp_server_posix_test.cc61 int server_fd; member
103 result->server_fd = -1; in on_connect_result_init()
111 result->server_fd = grpc_tcp_server_port_fd( in on_connect_result_set()
274 result->fd_index, result->server_fd); in tcp_connect()
372 result.server_fd >= 0 && result.server == s) { in test_connect()
404 GPR_ASSERT(result.server_fd == fd); in test_connect()
410 result.server_fd); in test_connect()
/third_party/grpc/test/core/network_benchmarks/
Dlow_level_ping_pong.cc420 int server_fd = -1; in create_sockets_tcp() local
441 server_fd = accept_server(listen_fd); in create_sockets_tcp()
442 if (server_fd == -1) { in create_sockets_tcp()
449 server_fds->read_fd = server_fd; in create_sockets_tcp()
450 server_fds->write_fd = server_fd; in create_sockets_tcp()
461 if (server_fd != -1) { in create_sockets_tcp()
462 close(server_fd); in create_sockets_tcp()
/third_party/nghttp2/src/
Dshrpx_worker_process.h38 int server_fd; member
/third_party/alsa-lib/src/pcm/
Dpcm_direct.c267 close(dmix->server_fd); in server_cleanup()
337 if (i != dmix->server_fd && i != dmix->hw_fd)
344 pfds[0].fd = dmix->server_fd;
373 sck = accept(dmix->server_fd, 0, 0);
424 dmix->server_fd = -1;
433 dmix->server_fd = ret;
435 ret = listen(dmix->server_fd, 4);
437 close(dmix->server_fd);
443 close(dmix->server_fd);
465 if (dmix->server_fd > 0) {
[all …]
Dpcm_direct.h164 int server_fd; member
/third_party/mbedtls/port/include/
Dtls_client.h40 mbedtls_net_context server_fd; member
/third_party/curl/lib/vtls/
Dmbedtls.c78 int server_fd; member