@@ -16,21 +16,20 @@ #include "config.h" #import "OFAlreadyConnectedException.h" #import "OFString.h" -#import "OFTCPSocket.h" #import "common.h" @implementation OFAlreadyConnectedException -+ (instancetype)exceptionWithSocket: (OFTCPSocket*)socket ++ (instancetype)exceptionWithSocket: (id)socket { return [[[self alloc] initWithSocket: socket] autorelease]; } -- initWithSocket: (OFTCPSocket*)socket +- initWithSocket: (id)socket { self = [super init]; _socket = [socket retain]; @@ -53,10 +52,10 @@ [_socket class]]; else return @"A connection has already been established!"; } -- (OFTCPSocket*)socket +- (id)socket { OF_GETTER(_socket, true) } @end