Home
last modified time | relevance | path

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

/platform_testing/tools/automotive/proxy/
Dproxy.cpp77 int server_sock = socket(AF_VSOCK, SOCK_STREAM, 0); in handleConnection() local
79 if (server_sock < 0) { in handleConnection()
82 closeFileDescriptor(server_sock); in handleConnection()
92 if (connect(server_sock, reinterpret_cast<sockaddr*>(&fwd_addr), in handleConnection()
96 closeFileDescriptor(server_sock); in handleConnection()
106 FD_SET(server_sock, &file_descriptors); in handleConnection()
108 int rv = select(MAX(client_sock, server_sock) + 1, &file_descriptors, nullptr, nullptr, in handleConnection()
117 connected = transferBytes(client_sock, server_sock); in handleConnection()
120 if (FD_ISSET(server_sock, &file_descriptors)) { in handleConnection()
122 connected = transferBytes(server_sock, client_sock); in handleConnection()
[all …]