Home
last modified time | relevance | path

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

/device/generic/goldfish/libqemu/
Dtest_host_1.c49 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 …]
Dtest_host_2.c47 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/
DTcpStream.cpp36 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()
DSocketStream.cpp40 SocketStream::SocketStream(int sock, size_t bufSize) : in SocketStream() argument
42 m_sock(sock), in SocketStream()
DTcpStream.h29 TcpStream(int sock, size_t bufSize);
DSocketStream.h47 SocketStream(int sock, size_t bufSize);
/device/generic/goldfish/opengl/system/OpenglSystemCommon/
DQemuPipeStream.cpp32 QemuPipeStream::QemuPipeStream(int sock, size_t bufSize) : in QemuPipeStream() argument
34 m_sock(sock), in QemuPipeStream()
DQemuPipeStream.h48 QemuPipeStream(int sock, size_t bufSize);