20 #import "OFDNSResolver.h" 22 #import "OFRunLoop+Private.h" 24 OF_ASSUME_NONNULL_BEGIN
26 @protocol OFAsyncIPSocketConnecting
31 - (void)of_closeSocket;
34 @interface OFAsyncIPSocketConnector:
OFObject <OFRunLoopConnectDelegate,
35 OFDNSResolverHostDelegate>
40 id _Nullable _delegate;
41 id _Nullable _handler;
42 id _Nullable _exception;
43 OFData *_Nullable _socketAddresses;
44 size_t _socketAddressesIndex;
47 - (instancetype)initWithSocket: (
id)sock
50 delegate: (nullable
id)delegate
51 handler: (nullable
id)handler;
53 - (void)tryNextAddressWithRunLoopMode: (
OFRunLoopMode)runLoopMode;
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:41
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
A struct which represents a host / port pair for a socket.
Definition: OFSocket.h:189
A class for handling strings.
Definition: OFString.h:142
A class for storing arbitrary data in an array.
Definition: OFData.h:45