@@ -16,17 +16,16 @@ #include "config.h" #import "OFAddressTranslationFailedException.h" #import "OFString.h" -#import "OFTCPSocket.h" #import "common.h" #import "macros.h" @implementation OFAddressTranslationFailedException -+ (instancetype)exceptionWithSocket: (OFTCPSocket*)socket ++ (instancetype)exceptionWithSocket: (id)socket { return [[[self alloc] initWithSocket: socket] autorelease]; } + (instancetype)exceptionWithHost: (OFString*)host @@ -33,11 +32,11 @@ { return [[[self alloc] initWithHost: host] autorelease]; } + (instancetype)exceptionWithHost: (OFString*)host - socket: (OFTCPSocket*)socket + socket: (id)socket { return [[[self alloc] initWithHost: host socket: socket] autorelease]; } @@ -44,11 +43,11 @@ - init { OF_INVALID_INIT_METHOD } -- initWithSocket: (OFTCPSocket*)socket +- initWithSocket: (id)socket { return [self initWithHost: nil socket: socket]; } @@ -57,11 +56,11 @@ return [self initWithHost: host socket: nil]; } - initWithHost: (OFString*)host - socket: (OFTCPSocket*)socket + socket: (id)socket { self = [super init]; @try { _host = [host copy]; @@ -114,11 +113,11 @@ - (OFString*)host { OF_GETTER(_host, true) } -- (OFTCPSocket*)socket +- (id)socket { OF_GETTER(_socket, true) } - (int)errNo