@@ -80,29 +80,29 @@ # endif id _exception; } - (instancetype)initWithSourceThread: (OFThread *)sourceThread - socket: (OFTCPSocket *)socket + socket: (OFTCPSocket *)sock host: (OFString *)host port: (uint16_t)port target: (id)target selector: (SEL)selector context: (id)context; # ifdef OF_HAVE_BLOCKS - (instancetype)initWithSourceThread: (OFThread *)sourceThread - socket: (OFTCPSocket *)socket + socket: (OFTCPSocket *)sock host: (OFString *)host port: (uint16_t)port block: (of_tcp_socket_async_connect_block_t) block; # endif @end @implementation OFTCPSocket_ConnectThread - (instancetype)initWithSourceThread: (OFThread *)sourceThread - socket: (OFTCPSocket *)socket + socket: (OFTCPSocket *)sock host: (OFString *)host port: (uint16_t)port target: (id)target selector: (SEL)selector context: (id)context @@ -109,11 +109,11 @@ { self = [super init]; @try { _sourceThread = [sourceThread retain]; - _socket = [socket retain]; + _socket = [sock retain]; _host = [host copy]; _port = port; _target = [target retain]; _selector = selector; _context = [context retain]; @@ -125,20 +125,20 @@ return self; } # ifdef OF_HAVE_BLOCKS - (instancetype)initWithSourceThread: (OFThread *)sourceThread - socket: (OFTCPSocket *)socket + socket: (OFTCPSocket *)sock host: (OFString *)host port: (uint16_t)port block: (of_tcp_socket_async_connect_block_t)block { self = [super init]; @try { _sourceThread = [sourceThread retain]; - _socket = [socket retain]; + _socket = [sock retain]; _host = [host copy]; _port = port; _block = [block copy]; } @catch (id e) { [self release];