ObjFW
Classes | Typedefs
OFStreamSocket.h File Reference
#import "OFStream.h"
#import "socket.h"
Include dependency graph for OFStreamSocket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

protocol  <OFStreamSocketDelegate>
 
class  OFStreamSocket
 A class which provides methods to create and use stream sockets. More...
 

Typedefs

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. More...
 

Typedef Documentation

◆ 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
acceptedSocketThe socket which has been accepted
exceptionAn 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