20 OF_ASSUME_NONNULL_BEGIN
58 exception: (nullable
id)exception;
70 bool _atEndOfStream, _listening;
78 @property (readonly, nonatomic, getter=isListening)
bool listening;
93 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
101 + (instancetype)socket;
108 - (void)listenWithBacklog: (
int)backlog;
120 - (instancetype)accept;
134 #ifdef OF_HAVE_BLOCKS
158 OF_ASSUME_NONNULL_END
bool(^ of_stream_socket_async_accept_block_t)(OFStreamSocket *acceptedSocket, id _Nullable exception)
A block which is called when the socket accepted a connection.
Definition: OFStreamSocket.h:36
struct objc_object * id
A pointer to any object.
Definition: ObjFWRT.h:90
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:69
A base class for different types of streams.
Definition: OFStream.h:191
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition: OFKernelEventObserver.h:85
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition: OFKernelEventObserver.h:100
Definition: OFStream.h:101
Definition: OFStreamSocket.h:45
A struct which represents a host / port pair for a socket.
Definition: socket.h:136