@@ -167,11 +167,11 @@ - (void)close { if (_socket == INVALID_SOCKET) @throw [OFNotOpenException exceptionWithObject: self]; - close(_socket); + closesocket(_socket); _socket = INVALID_SOCKET; _atEndOfStream = false; [super close];