Lines Matching refs:SOCKET_ERROR
210 if (bytes_read == SOCKET_ERROR)
270 if (bytes_written == SOCKET_ERROR)
305 if (closesocket (fd) == SOCKET_ERROR)
355 if (ioctlsocket (handle, FIONBIO, &one) == SOCKET_ERROR)
437 if (rc == SOCKET_ERROR)
833 if (bind (temp, (struct sockaddr *)&saddr, sizeof (saddr)) == SOCKET_ERROR)
839 if (listen (temp, 1) == SOCKET_ERROR)
846 if (getsockname (temp, (struct sockaddr *)&saddr, &len) == SOCKET_ERROR)
859 if (connect (socket1, (struct sockaddr *)&saddr, len) == SOCKET_ERROR)
875 if (ioctlsocket (socket1, FIONBIO, &arg) == SOCKET_ERROR)
882 if (ioctlsocket (socket2, FIONBIO, &arg) == SOCKET_ERROR)
1312 if (connect (fd, (struct sockaddr*) tmp->ai_addr, tmp->ai_addrlen) == SOCKET_ERROR)
1459 if (bind (fd, (struct sockaddr*) tmp->ai_addr, tmp->ai_addrlen) == SOCKET_ERROR)
1469 if (listen (fd, 30 /* backlog */) == SOCKET_ERROR)
1503 if (getsockname(fd, &addr.Address, &addrlen) == SOCKET_ERROR)