Searched refs:listenSocket (Results 1 – 1 of 1) sorted by relevance
/haiku/src/tests/system/network/ |
H A D | firefox_crash.cpp | 47 int listenSocket = open_tcp_socket(); in tcp_pair() local 48 if (listenSocket < 0) in tcp_pair() 57 if (bind(listenSocket, (sockaddr*)&listenAddress, sizeof(sockaddr_in)) != 0) in tcp_pair() 61 if (getsockname(listenSocket, (sockaddr*)&listenAddress, &length) != 0) in tcp_pair() 64 if (listen(listenSocket, 5) != 0) in tcp_pair() 93 pair[1] = accept(listenSocket, (sockaddr*)&peerAddress, &length); in tcp_pair() 105 FD_SET(listenSocket, &set); in tcp_pair() 106 if (select(listenSocket + 1, &set, NULL, NULL, &tv) < 0) in tcp_pair() 113 close(listenSocket); in tcp_pair() 117 close(listenSocket); in tcp_pair()
|