#import "OFStream.h"
#import "socket.h"
Go to the source code of this file.
◆ of_stream_socket_async_accept_block_t
typedef bool(^ of_stream_socket_async_accept_block_t) (OFStreamSocket *acceptedSocket, id _Nullable exception) |
A block which is called when the socket accepted a connection.
- Parameters
-
acceptedSocket | The socket which has been accepted |
exception | An exception which occurred while accepting the socket or nil on success |
- Returns
- A bool whether the same block should be used for the next incoming connection