Searched refs:listenerSocket (Results 1 – 2 of 2) sorted by relevance
/haiku/build/scripts/ |
H A D | bootstrap_daemon.py | 23 def handleConnection(listenerSocket): argument 24 (controlConnection, controlAddress) = listenerSocket.accept() 25 (stdioConnection, stdioAddress) = listenerSocket.accept() 26 (stderrConnection, stderrAddress) = listenerSocket.accept() 48 listenerSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) variable 49 listenerSocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 52 listenerSocket.bind((address, port)) 56 listenerSocket.listen(3) 61 handleConnection(listenerSocket)
|
/haiku/src/tests/system/network/ |
H A D | tcp_connection_test.cpp | 16 int listenerSocket = socket(AF_INET, SOCK_STREAM, 0); in main() local 17 if (listenerSocket < 0) { in main() 29 if (bind(listenerSocket, (sockaddr*)&addr, addrLen) < 0) { in main() 37 if (getsockname(listenerSocket, (sockaddr*)&addr, &addrLen) != 0) { in main() 45 if (listen(listenerSocket, 1) < 0) { in main() 125 int fd = accept(listenerSocket, NULL, 0); in main()
|