23OF_ASSUME_NONNULL_BEGIN
42 id _Nullable exception)
43 OF_DEPRECATED(ObjFW, 1, 2,
"Use OFStreamSocketAcceptedHandler instead");
64@protocol OFStreamSocketDelegate <OFStreamDelegate>
77 exception: (nullable
id)exception;
88 OFSocketHandle _socket;
93 bool _atEndOfStream, _listening;
101@property (readonly, nonatomic, getter=isListening)
bool listening;
119@property OF_NULLABLE_PROPERTY (assign, nonatomic)
120 id <OFStreamSocketDelegate> delegate;
127+ (instancetype)socket;
136- (void)listenWithBacklog: (
int)backlog;
155- (instancetype)accept;
171- (void)asyncAcceptWithRunLoopMode: (
OFRunLoopMode)runLoopMode;
184 OF_DEPRECATED(ObjFW, 1, 2, "Use -[asyncAcceptWithHandler:] instead");
207- (void)asyncAcceptWithRunLoopMode: (
OFRunLoopMode)runLoopMode
209 OF_DEPRECATED(ObjFW, 1, 2,
210 "Use -[asyncAcceptWithRunLoopMode:handler:] instead");
222- (void)asyncAcceptWithRunLoopMode: (
OFRunLoopMode)runLoopMode
236- (void)releaseSocketFromCurrentThread;
248- (void)obtainSocketForCurrentThread;
bool(^ OFStreamSocketAcceptedHandler)(OFStreamSocket *socket, OFStreamSocket *acceptedSocket, id exception)
A handler which is called when the socket accepted a connection.
Definition OFStreamSocket.h:55
bool(^ OFStreamSocketAsyncAcceptBlock)(OFStreamSocket *acceptedSocket, id exception)
A block which is called when the socket accepted a connection.
Definition OFStreamSocket.h:41
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:88
A base class for different types of streams.
Definition OFStream.h:280
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:98
A struct which represents a host / port pair for a socket.
Definition OFSocket.h:189