Home
last modified time | relevance | path

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

/external/rust/crates/quiche/deps/boringssl/src/crypto/bio/
Dbio_test.cc69 int listening_sock = -1; in TEST() local
77 listening_sock = socket(AF_INET6, SOCK_STREAM, 0); in TEST()
78 ASSERT_NE(-1, listening_sock) << LastSocketError(); in TEST()
82 if (bind(listening_sock, (struct sockaddr *)sin6, sizeof(*sin6)) == -1) { in TEST()
83 closesocket(listening_sock); in TEST()
86 listening_sock = socket(AF_INET, SOCK_STREAM, 0); in TEST()
87 ASSERT_NE(-1, listening_sock) << LastSocketError(); in TEST()
91 ASSERT_EQ(0, bind(listening_sock, (struct sockaddr *)sin, sizeof(*sin))) in TEST()
95 ScopedSocket listening_sock_closer(listening_sock); in TEST()
96 ASSERT_EQ(0, listen(listening_sock, 1)) << LastSocketError(); in TEST()
[all …]
/external/boringssl/src/crypto/bio/
Dbio_test.cc69 int listening_sock = -1; in TEST() local
77 listening_sock = socket(AF_INET6, SOCK_STREAM, 0); in TEST()
78 ASSERT_NE(-1, listening_sock) << LastSocketError(); in TEST()
82 if (bind(listening_sock, (struct sockaddr *)sin6, sizeof(*sin6)) == -1) { in TEST()
83 closesocket(listening_sock); in TEST()
86 listening_sock = socket(AF_INET, SOCK_STREAM, 0); in TEST()
87 ASSERT_NE(-1, listening_sock) << LastSocketError(); in TEST()
91 ASSERT_EQ(0, bind(listening_sock, (struct sockaddr *)sin, sizeof(*sin))) in TEST()
95 ScopedSocket listening_sock_closer(listening_sock); in TEST()
96 ASSERT_EQ(0, listen(listening_sock, 1)) << LastSocketError(); in TEST()
[all …]
/external/python/cpython2/Lib/idlelib/
Drpc.py517 self.listening_sock = socket.socket(family, type)
518 self.listening_sock.bind(address)
519 self.listening_sock.listen(1)
522 working_sock, address = self.listening_sock.accept()
DPyShell.py446 self.port = self.rpcclt.listening_sock.getsockname()[1]
453 self.rpcclt.listening_sock.setsockopt(socket.SOL_SOCKET,
458 self.rpcclt.listening_sock.settimeout(10)
/external/python/cpython3/Lib/idlelib/
Drpc.py532 self.listening_sock = socket.socket(family, type)
533 self.listening_sock.bind(address)
534 self.listening_sock.listen(1)
537 working_sock, address = self.listening_sock.accept()
Dpyshell.py451 self.port = self.rpcclt.listening_sock.getsockname()[1]
458 self.rpcclt.listening_sock.setsockopt(socket.SOL_SOCKET,
463 self.rpcclt.listening_sock.settimeout(10)
534 self.rpcclt.listening_sock.close()
/external/perfetto/src/ipc/
Dclient_impl_unittest.cc108 listening_sock = in FakeHost()
111 EXPECT_TRUE(listening_sock->is_listening()); in FakeHost()
194 std::unique_ptr<base::UnixSocket> listening_sock; member in perfetto::ipc::__anon2c0b15d50111::FakeHost