15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
-
+
-
+
|
#import "OFDNSResolver.h"
#import "OFRunLoop.h"
#import "OFRunLoop+Private.h"
OF_ASSUME_NONNULL_BEGIN
@protocol OFIPSocketAsyncConnecting
@protocol OFAsyncIPSocketConnecting
- (bool)of_createSocketForAddress: (const OFSocketAddress *)address
errNo: (int *)errNo;
- (bool)of_connectSocketToAddress: (const OFSocketAddress *)address
errNo: (int *)errNo;
- (void)of_closeSocket;
@end
@interface OFIPSocketAsyncConnector: OFObject <OFRunLoopConnectDelegate,
@interface OFAsyncIPSocketConnector: OFObject <OFRunLoopConnectDelegate,
OFDNSResolverHostDelegate>
{
id _socket;
OFString *_host;
uint16_t _port;
id _Nullable _delegate;
id _Nullable _block;
|