Home
last modified time | relevance | path

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

/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c38 static void ConnectAndAccept(enum LoopbackAddr addr, int server_fd, int port) { in ConnectAndAccept() argument
88 if ((accepted_fd = accept(server_fd, in ConnectAndAccept()
98 static void CreateServer(int* server_fd, int* port) { in CreateServer() argument
103 if ((*server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServer()
111 if (bind(*server_fd, (struct sockaddr*)(&sa), sizeof(sa)) == -1) { in CreateServer()
115 if (getsockname(*server_fd, (struct sockaddr*)(&sa), &addr_len) == -1) { in CreateServer()
119 if (listen(*server_fd, 10) == -1) { in CreateServer()
130 int server_fd, client_fd, accepted_fd, connect_rc; in CreateServerConnectAndAccept() local
132 if ((server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
141 if (bind(server_fd, (struct sockaddr*)(&sa), sizeof(sa)) == -1) { in CreateServerConnectAndAccept()
[all …]
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_client.cc48 explicit CrashGenerationClientImpl(int server_fd) : server_fd_(server_fd) {} in CrashGenerationClientImpl() argument
99 CrashGenerationClient* CrashGenerationClient::TryCreate(int server_fd) { in TryCreate() argument
100 if (server_fd < 0) in TryCreate()
102 return new CrashGenerationClientImpl(server_fd); in TryCreate()
Dcrash_generation_client.h57 static CrashGenerationClient* TryCreate(int server_fd);
Dcrash_generation_server.cc131 CrashGenerationServer::CreateReportChannel(int* server_fd, int* client_fd) in CreateReportChannel() argument
149 *server_fd = fds[1]; in CreateReportChannel()
Dcrash_generation_server.h90 static bool CreateReportChannel(int* server_fd, int* client_fd);
/external/dbus/dbus/
Ddbus-server-debug-pipe.c214 int client_fd, server_fd; in _dbus_transport_debug_pipe_new() local
249 if (!_dbus_full_duplex_pipe (&client_fd, &server_fd, FALSE, in _dbus_transport_debug_pipe_new()
263 _dbus_close_socket (server_fd, NULL); in _dbus_transport_debug_pipe_new()
273 server_transport = _dbus_transport_new_for_socket (server_fd, in _dbus_transport_debug_pipe_new()
278 _dbus_close_socket (server_fd, NULL); in _dbus_transport_debug_pipe_new()
283 server_fd = -1; in _dbus_transport_debug_pipe_new()
Ddbus-sysdeps-unix.h83 dbus_bool_t _dbus_send_credentials (int server_fd,
Ddbus-sysdeps.h190 dbus_bool_t _dbus_send_credentials_socket (int server_fd,
Ddbus-sysdeps-unix.c1597 write_credentials_byte (int server_fd, in write_credentials_byte() argument
1629 bytes_written = sendmsg (server_fd, &msg, 0 in write_credentials_byte()
1635 bytes_written = send (server_fd, buf, 1, 0 in write_credentials_byte()
1930 _dbus_send_credentials_socket (int server_fd, in _dbus_send_credentials_socket() argument
1935 if (write_credentials_byte (server_fd, error)) in _dbus_send_credentials_socket()
/external/fio/
Dserver.c34 static int server_fd = -1; variable
536 fio_net_send_stop(server_fd, ffi->exitval, ffi->signal); in fio_server_fork_item_done()
537 fio_net_send_quit(server_fd); in fio_server_fork_item_done()
579 fio_net_send_quit(server_fd); in handle_load_file_cmd()
585 fio_net_send_cmd(server_fd, FIO_NET_CMD_START, &spdu, sizeof(spdu), NULL, NULL); in handle_load_file_cmd()
618 fio_net_send_quit(server_fd); in handle_job_cmd()
624 fio_net_send_cmd(server_fd, FIO_NET_CMD_START, &spdu, sizeof(spdu), NULL, NULL); in handle_job_cmd()
655 fio_net_send_quit(server_fd); in handle_jobline_cmd()
664 fio_net_send_cmd(server_fd, FIO_NET_CMD_START, &spdu, sizeof(spdu), NULL, NULL); in handle_jobline_cmd()
701 return fio_net_send_cmd(server_fd, FIO_NET_CMD_PROBE, &probe, sizeof(probe), &tag, NULL); in handle_probe_cmd()
[all …]
/external/tlsdate/src/
Dtlsdate-helper-plan9.c835 int ret = 0, server_fd = 0; in run_ssl() local
896 if (0 != net_connect (&server_fd, proxy_host, atoi(proxy_port))) in run_ssl()
902 proxy_polarssl_set_bio (&proxy_ctx, net_recv, &server_fd, net_send, &server_fd); in run_ssl()
916 if (0 != net_connect (&server_fd, host, atoi(port))) in run_ssl()
921 ssl_set_bio (&ssl, net_recv, &server_fd, net_send, &server_fd); in run_ssl()
Dtlsdate-helper.c975 int ret = 0, server_fd = 0; in run_ssl() local
1036 if (0 != net_connect (&server_fd, proxy_host, atoi(proxy_port))) in run_ssl()
1042 proxy_polarssl_set_bio (&proxy_ctx, net_recv, &server_fd, net_send, &server_fd); in run_ssl()
1056 if (0 != net_connect (&server_fd, host, atoi(port))) in run_ssl()
1061 ssl_set_bio (&ssl, net_recv, &server_fd, net_send, &server_fd); in run_ssl()
/external/google-breakpad/src/client/linux/handler/
Dexception_handler.cc223 const int server_fd) in ExceptionHandler() argument
229 if (server_fd >= 0) in ExceptionHandler()
230 crash_generation_client_.reset(CrashGenerationClient::TryCreate(server_fd)); in ExceptionHandler()
Dexception_handler.h132 const int server_fd);
/external/curl/lib/
Durldata.h286 int server_fd; member