@@ -16,27 +16,26 @@ #include "config.h" #import "OFNotConnectedException.h" #import "OFString.h" -#import "OFTCPSocket.h" #import "common.h" #import "macros.h" @implementation OFNotConnectedException -+ (instancetype)exceptionWithSocket: (OFStreamSocket*)socket ++ (instancetype)exceptionWithSocket: (id)socket { return [[[self alloc] initWithSocket: socket] autorelease]; } - init { OF_INVALID_INIT_METHOD } -- initWithSocket: (OFStreamSocket*)socket +- initWithSocket: (id)socket { self = [super init]; _socket = [socket retain]; @@ -55,10 +54,10 @@ return [OFString stringWithFormat: @"The socket of type %@ is not connected or bound!", [_socket class]]; } -- (OFStreamSocket*)socket +- (id)socket { OF_GETTER(_socket, true) } @end