@@ -16,27 +16,26 @@ #include "config.h" #import "OFAcceptFailedException.h" #import "OFString.h" -#import "OFTCPSocket.h" #import "common.h" #import "macros.h" @implementation OFAcceptFailedException -+ (instancetype)exceptionWithSocket: (OFTCPSocket*)socket ++ (instancetype)exceptionWithSocket: (id)socket { return [[[self alloc] initWithSocket: socket] autorelease]; } - init { OF_INVALID_INIT_METHOD } -- initWithSocket: (OFTCPSocket*)socket +- initWithSocket: (id)socket { self = [super init]; _socket = [socket retain]; _errNo = GET_SOCK_ERRNO; @@ -56,11 +55,11 @@ return [OFString stringWithFormat: @"Failed to accept connection in socket of class %@! " ERRFMT, [_socket class], ERRPARAM]; } -- (OFTCPSocket*)socket +- (id)socket { OF_GETTER(_socket, true) } - (int)errNo