19 OF_ASSUME_NONNULL_BEGIN
36 id _Nullable exception);
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;
147 #ifdef OF_HAVE_BLOCKS 165 - (void)asyncAcceptWithRunLoopMode: (
OFRunLoopMode)runLoopMode
179 - (void)releaseSocketFromCurrentThread;
191 - (void)obtainSocketForCurrentThread;
194 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:37
A base class for different types of streams.
Definition: OFStream.h:186
A struct which represents a host / port pair for a socket.
Definition: OFSocket.h:182
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:35
A class which provides methods to create and use stream sockets.
Definition: OFStreamSocket.h:65