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