Lines Matching refs:Socket
63 Socket* server_; // Server socket used for bind/accept.
64 Socket* client_; // Single client connection used by the test.
65 Semaphore* listening_; // Signalled when the server socket is in listen mode.
72 // Create the server socket and bind it to the requested port.
96 static bool SendAll(Socket* socket, const char* data, int len) {
99 int status = socket->Send(data, len);
119 // Create a socket listener.
125 Socket* client = OS::CreateSocket();
149 TEST(Socket) {
156 // Initialize socket support.
157 ok = Socket::SetUp();
187 CHECK_EQ(x, Socket::NToH(Socket::HToN(x)));
190 CHECK(y == Socket::NToH(Socket::HToN(y)));