Home
last modified time | relevance | path

Searched refs:server_fd (Results 1 – 17 of 17) 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/linux-kselftest/tools/testing/selftests/net/
Dtcp_inq.c71 int server_fd = (int)(unsigned long)arg; in start_server() local
81 fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen); in start_server()
102 close(server_fd); in start_server()
115 int server_fd, fd; in main() local
134 server_fd = socket(family, SOCK_STREAM, 0); in main()
135 if (server_fd < 0) in main()
138 if (setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, in main()
141 if (bind(server_fd, (const struct sockaddr *)&listen_addr, in main()
144 if (listen(server_fd, 128) == -1) in main()
147 (void *)(unsigned long)server_fd) != 0) in main()
/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_server.cc131 CrashGenerationServer::CreateReportChannel(int* server_fd, int* client_fd) in CreateReportChannel() argument
149 *server_fd = fds[1]; in CreateReportChannel()
Dcrash_generation_client.h57 static CrashGenerationClient* TryCreate(int server_fd);
Dcrash_generation_server.h90 static bool CreateReportChannel(int* server_fd, int* client_fd);
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_socket_cookie.c56 static int connect_to_server(int server_fd) in connect_to_server() argument
68 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server()
143 int server_fd = -1; in run_test() local
174 server_fd = start_server(); in run_test()
175 if (server_fd == -1) in run_test()
178 client_fd = connect_to_server(server_fd); in run_test()
190 close(server_fd); in run_test()
/external/libese/tools/ese_relay/
Dese_relay.c72 int server_fd = setup_socket(LOG_TAG); in main() local
76 if (listen(server_fd, 4)) { in main()
78 close(server_fd); in main()
82 while (server_fd) { in main()
94 if ((client_fd = accept(server_fd, &client_info, &client_info_len)) == -1) { in main()
/external/grpc-grpc/test/core/iomgr/
Dtcp_server_posix_test.cc59 int server_fd; member
101 result->server_fd = -1; in on_connect_result_init()
109 result->server_fd = grpc_tcp_server_port_fd( in on_connect_result_set()
274 result->fd_index, result->server_fd); in tcp_connect()
370 result.server_fd >= 0 && result.server == s) { in test_connect()
402 GPR_ASSERT(result.server_fd == fd); in test_connect()
408 result.server_fd); in test_connect()
/external/adhd/cras/src/libcras/
Dcras_client.c221 int server_fd; member
369 poll_fd->fd = client->server_fd; in server_fill_pollfd()
416 if (client->server_fd == -1) { in error_delay_next_action()
417 client->server_fd = timerfd_create( in error_delay_next_action()
420 if (client->server_fd == -1) { in error_delay_next_action()
431 rc = timerfd_settime(client->server_fd, 0, &timeout, NULL); in error_delay_next_action()
445 close(client->server_fd); in error_delay_next_action()
446 client->server_fd = -1; in error_delay_next_action()
485 if (client->server_fd == -1) { in wait_for_writable_next_action()
486 client->server_fd = socket(PF_UNIX, SOCK_SEQPACKET, 0); in wait_for_writable_next_action()
[all …]
/external/grpc-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()
/external/libchrome/mojo/public/cpp/platform/
Dsocket_utils_posix.cc170 bool AcceptSocketConnection(base::PlatformFile server_fd, in AcceptSocketConnection() argument
173 DCHECK_GE(server_fd, 0); in AcceptSocketConnection()
179 base::ScopedFD accepted_handle(HANDLE_EINTR(accept(server_fd, nullptr, 0))); in AcceptSocketConnection()
Dsocket_utils_posix.h74 bool AcceptSocketConnection(base::PlatformFile server_fd,
/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/vtls/
Dpolarssl.c76 int server_fd; member
Dmbedtls.c68 int server_fd; member