@@ -25,12 +25,14 @@ # include #endif #import "OFStreamSocket.h" +#import "OFInitializationFailedException.h" #import "OFNotConnectedException.h" #import "OFReadFailedException.h" +#import "OFSetOptionFailedException.h" #import "OFWriteFailedException.h" #ifndef INVALID_SOCKET # define INVALID_SOCKET -1 #endif @@ -136,11 +138,11 @@ u_long v = enable; isBlocking = enable; if (ioctlsocket(sock, FIONBIO, &v) == SOCKET_ERROR) @throw [OFSetOptionFailedException newWithClass: isa - stream: stream]; + stream: self]; } #endif - (int)fileDescriptor {