Home
last modified time | relevance | path

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

/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c41 int client_fd, accepted_fd; in ConnectAndAccept() local
47 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept()
63 if (connect(client_fd, (struct sockaddr*)(&sa), in ConnectAndAccept()
72 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept()
80 if (connect(client_fd, (struct sockaddr*)(&sa4), in ConnectAndAccept()
93 close(client_fd); in ConnectAndAccept()
130 int server_fd, client_fd, accepted_fd, connect_rc; in CreateServerConnectAndAccept() local
156 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
169 connect_rc = connect(client_fd, (struct sockaddr*)(&sa), in CreateServerConnectAndAccept()
175 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
[all …]
/external/libese/tools/ese_relay/
Dese_relay.c73 int client_fd = -1; in main() local
86 int client_fd; in main() local
95 if ((client_fd = accept(server_fd, &client_info, &client_info_len)) == -1) { in main()
112 if (read(client_fd, &network_tx_len, sizeof(network_tx_len)) != in main()
129 ssize_t bytes = read(client_fd, tx_buf + data_read, tx_len - data_read); in main()
190 if (write(client_fd, &network_rx_len, sizeof(network_rx_len)) != in main()
198 write(client_fd, rx_buf + data_read, rx_len - data_read); in main()
208 close(client_fd); in main()
/external/ltp/testcases/network/tcp_fastopen/
Dtcp_fastopen.c505 int client_fd = (intptr_t) cfd; in server_fn() local
514 setsockopt(client_fd, SOL_SOCKET, SO_LINGER, &clo, sizeof(clo)); in server_fn()
516 setsockopt(client_fd, SOL_SOCKET, SO_BUSY_POLL, in server_fn()
523 recv_len = sock_recv_poll(client_fd, recv_msg, in server_fn()
532 tst_resm(TFAIL, "recv failed, sock '%d'", client_fd); in server_fn()
549 "msg recv from sock %d:", client_fd); in server_fn()
570 if (send(client_fd, send_msg, send_msg_size, in server_fn()
580 shutdown(client_fd, SHUT_WR); in server_fn()
586 SAFE_CLOSE(cleanup, client_fd); in server_fn()
591 SAFE_CLOSE(cleanup, client_fd); in server_fn()
[all …]
/external/libmojo/mojo/edk/embedder/
Dplatform_channel_pair_posix.cc94 int client_fd = -1; in PassClientHandleFromParentProcessFromString() local
96 !base::StringToInt(value, &client_fd) || in PassClientHandleFromParentProcessFromString()
97 client_fd < base::GlobalDescriptors::kBaseDescriptor) { in PassClientHandleFromParentProcessFromString()
102 return ScopedPlatformHandle(PlatformHandle(client_fd)); in PassClientHandleFromParentProcessFromString()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc131 CrashGenerationServer::CreateReportChannel(int* server_fd, int* client_fd) in CreateReportChannel() argument
148 *client_fd = fds[0]; in CreateReportChannel()
Dcrash_generation_server.h90 static bool CreateReportChannel(int* server_fd, int* client_fd);
/external/libvncserver/libvncserver/
Dmain.c571 int client_fd; in listenerRun() local
580 client_fd = -1; in listenerRun()
595 client_fd = accept(screen->listenSock, (struct sockaddr*)&peer, &len); in listenerRun()
597 client_fd = accept(screen->listen6Sock, (struct sockaddr*)&peer, &len); in listenerRun()
599 if(client_fd >= 0) in listenerRun()
600 cl = rfbNewClient(screen,client_fd); in listenerRun()