Lines Matching defs:sock
107 int _readn(PRFileDesc *sock, char *buf, int len)
113 bytes = PR_Recv(sock, buf+len-rem, rem, 0, PR_INTERVAL_NO_TIMEOUT);
144 PRFileDesc *sock;
170 if ( (sock = PR_NewTCPSocket()) == NULL) {
177 if ( PR_SetSocketOption(sock, &sockopt) == PR_FAILURE) {
187 if ( PR_Bind(sock, &sa) < 0) {
192 if ( PR_Listen(sock, 32) < 0 ) {
215 if ( (newsock = PR_Accept(sock, &sa,
272 if (sock) PR_Close(sock);