Searched refs:sock (Results 1 – 8 of 8) sorted by relevance
/device/generic/goldfish/libqemu/ |
D | test_host_1.c | 49 socket_close(int sock) in socket_close() argument 52 close(sock); in socket_close() 62 int sock = socket(AF_INET, type, 0); in socket_loopback_server() local 63 if (sock < 0) { in socket_loopback_server() 73 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n)); in socket_loopback_server() 75 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { in socket_loopback_server() 76 socket_close(sock); in socket_loopback_server() 81 if (TFR(listen(sock, 4)) < 0) { in socket_loopback_server() 82 socket_close(sock); in socket_loopback_server() 87 return sock; in socket_loopback_server() [all …]
|
D | test_host_2.c | 47 socket_close(int sock) in socket_close() argument 50 close(sock); in socket_close() 60 int sock = socket(AF_INET, type, 0); in socket_loopback_server() local 61 if (sock < 0) { in socket_loopback_server() 71 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n)); in socket_loopback_server() 73 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { in socket_loopback_server() 74 socket_close(sock); in socket_loopback_server() 79 if (TFR(listen(sock, 4)) < 0) { in socket_loopback_server() 80 socket_close(sock); in socket_loopback_server() 85 return sock; in socket_loopback_server() [all …]
|
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
D | TcpStream.cpp | 36 TcpStream::TcpStream(int sock, size_t bufSize) : in TcpStream() argument 37 SocketStream(sock, bufSize) in TcpStream() 47 setsockopt( sock, IPPROTO_TCP, TCP_NODELAY, (const char*)&flag, sizeof(flag) ); in TcpStream()
|
D | SocketStream.cpp | 40 SocketStream::SocketStream(int sock, size_t bufSize) : in SocketStream() argument 42 m_sock(sock), in SocketStream()
|
D | TcpStream.h | 29 TcpStream(int sock, size_t bufSize);
|
D | SocketStream.h | 47 SocketStream(int sock, size_t bufSize);
|
/device/generic/goldfish/opengl/system/OpenglSystemCommon/ |
D | QemuPipeStream.cpp | 32 QemuPipeStream::QemuPipeStream(int sock, size_t bufSize) : in QemuPipeStream() argument 34 m_sock(sock), in QemuPipeStream()
|
D | QemuPipeStream.h | 48 QemuPipeStream(int sock, size_t bufSize);
|