19OF_ASSUME_NONNULL_BEGIN
36 id _Nullable exception);
44@protocol OFStreamSocketDelegate <OFStreamDelegate>
57 exception: (nullable
id)exception;
68 OFSocketHandle _socket;
73 bool _atEndOfStream, _listening;
81@property (readonly, nonatomic, getter=isListening)
bool listening;
99@property OF_NULLABLE_PROPERTY (assign, nonatomic)
100 id <OFStreamSocketDelegate> delegate;
107+ (instancetype)socket;
116- (void)listenWithBacklog: (
int)backlog;
133- (instancetype)accept;
145- (void)asyncAcceptWithRunLoopMode: (
OFRunLoopMode)runLoopMode;
165- (void)asyncAcceptWithRunLoopMode: (
OFRunLoopMode)runLoopMode
179- (void)releaseSocketFromCurrentThread;
191- (void)obtainSocketForCurrentThread;
bool(^ OFStreamSocketAsyncAcceptBlock)(OFStreamSocket *acceptedSocket, id exception)
A block which is called when the socket accepted a connection.
Definition OFStreamSocket.h:35
A class for storing constant strings using the @"" literal.
Definition OFConstantString.h:38
A class which provides methods to create and use stream sockets.
Definition OFStreamSocket.h:68
A base class for different types of streams.
Definition OFStream.h:188
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition OFKernelEventObserver.h:84
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition OFKernelEventObserver.h:99
A struct which represents a host / port pair for a socket.
Definition OFSocket.h:182