25 #import <Foundation/Foundation.h>
33 - (void)socket:(
CFSocket *)socket acceptNativeHandle:(NSSocketNativeHandle)nativeHandle;
60 @property(weak, NS_NONATOMIC_IOSONLY) id<CFSocketDelegate> delegate;
83 - (id)initWithSocketRef:(CFSocketRef)socket;
85 - (id)initWithProtocolFamily:(
int)family socketType:(
int)type protocol:(
int)protocol;
106 - (id)initWithNativeHandle:(NSSocketNativeHandle)nativeHandle;
118 - (BOOL)setAddress:(NSData *)addressData error:(NSError **)outError;
120 - (BOOL)connectToAddress:(NSData *)addressData timeout:(NSTimeInterval)timeout error:(NSError **)outError;
125 - (NSData *)peerAddress;
126 - (NSSocketNativeHandle)nativeHandle;
127 - (BOOL)setReuseAddressOption:(BOOL)flag;
147 - (int)addressFamily;
158 - (void)addToCurrentRunLoopForCommonModes;
159 - (void)removeFromCurrentRunLoopForCommonModes;
160 - (void)disableAcceptCallBack;
161 - (void)enableAcceptCallBack;
175 - (void)acceptNativeHandle:(NSSocketNativeHandle)nativeHandle;
181 void __CFSocketCallOut(CFSocketRef socket, CFSocketCallBackType type, CFDataRef address,
const void *data,
void *info);