Lines Matching defs:sock
81 PRFileDesc *sock = NULL;
95 if ((sock = PR_NewTCPSocket()) == NULL) {
101 if (PR_Bind(sock, &addr) != PR_SUCCESS) {
111 if (PR_Connect(sock, &addr, PR_SecondsToInterval(5)) !=
120 if (PR_Send(sock, message, strlen(message) + 1, 0, PR_INTERVAL_NO_TIMEOUT) ==
128 if (sock) {
129 PR_Close(sock);
144 PRFileDesc *sock = NULL;
188 sock = PR_Accept(listenSock, &addr, PR_SecondsToInterval(5));
189 if (!sock) {
195 nBytes = PR_Recv(sock, buf, sizeof(buf), 0, PR_INTERVAL_NO_TIMEOUT);
225 if (sock) {
226 PR_Close(sock);