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
bool(^ OFStreamSocketAsyncAcceptBlock)(OFStreamSocket *acceptedSocket, id exception)
A block which is called when the socket accepted a connection.
Definition: OFStreamSocket.h:39
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:42
A class which provides methods to create and use stream sockets.
Definition: OFStreamSocket.h:72
A base class for different types of streams.
Definition: OFStream.h:192
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition: OFKernelEventObserver.h:88
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition: OFKernelEventObserver.h:103
Definition: OFStream.h:102
Definition: OFStreamSocket.h:48
A struct which represents a host / port pair for a socket.
Definition: OFSocket.h:186