23 OF_ASSUME_NONNULL_BEGIN
40 id _Nullable exception);
61 exception: (nullable
id)exception;
72 OFSocketHandle _socket;
77 bool _atEndOfStream, _listening;
85 @property (readonly, nonatomic, getter=isListening)
bool listening;
103 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
104 id <OFStreamSocketDelegate> delegate;
111 + (instancetype)socket;
120 - (void)listenWithBacklog: (
int)backlog;
137 - (instancetype)accept;
149 - (void)asyncAcceptWithRunLoopMode: (
OFRunLoopMode)runLoopMode;
151 #ifdef OF_HAVE_BLOCKS 169 - (void)asyncAcceptWithRunLoopMode: (
OFRunLoopMode)runLoopMode
183 - (void)releaseSocketFromCurrentThread;
195 - (void)obtainSocketForCurrentThread;
198 OF_ASSUME_NONNULL_END
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:41
A base class for different types of streams.
Definition: OFStream.h:190
A struct which represents a host / port pair for a socket.
Definition: OFSocket.h:186
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
bool(^ OFStreamSocketAsyncAcceptBlock)(OFStreamSocket *acceptedSocket, id exception)
A block which is called when the socket accepted a connection.
Definition: OFStreamSocket.h:39
A class which provides methods to create and use stream sockets.
Definition: OFStreamSocket.h:69