@@ -16,19 +16,18 @@ #include "config.h" #import "OFConnectionFailedException.h" #import "OFString.h" -#import "OFTCPSocket.h" #import "common.h" #import "macros.h" @implementation OFConnectionFailedException + (instancetype)exceptionWithHost: (OFString*)host port: (uint16_t)port - socket: (OFTCPSocket*)socket + socket: (id)socket { return [[[self alloc] initWithHost: host port: port socket: socket] autorelease]; } @@ -38,11 +37,11 @@ OF_INVALID_INIT_METHOD } - initWithHost: (OFString*)host port: (uint16_t)port - socket: (OFTCPSocket*)socket + socket: (id)socket { self = [super init]; @try { _host = [host copy]; @@ -81,11 +80,11 @@ - (uint16_t)port { return _port; } -- (OFTCPSocket*)socket +- (id)socket { OF_GETTER(_socket, true) } - (int)errNo