@@ -16,17 +16,16 @@ #include "config.h" #import "OFListenFailedException.h" #import "OFString.h" -#import "OFTCPSocket.h" #import "common.h" #import "macros.h" @implementation OFListenFailedException -+ (instancetype)exceptionWithSocket: (OFTCPSocket*)socket ++ (instancetype)exceptionWithSocket: (id)socket backLog: (int)backLog { return [[[self alloc] initWithSocket: socket backLog: backLog] autorelease]; } @@ -34,11 +33,11 @@ - init { OF_INVALID_INIT_METHOD } -- initWithSocket: (OFTCPSocket*)socket +- initWithSocket: (id)socket backLog: (int)backLog { self = [super init]; _socket = [socket retain]; @@ -60,11 +59,11 @@ return [OFString stringWithFormat: @"Failed to listen in socket of type %@ with a back log of %d! " ERRFMT, [_socket class], _backLog, ERRPARAM]; } -- (OFTCPSocket*)socket +- (id)socket { OF_GETTER(_socket, true) } - (int)backLog