Go to the source code of this file.
◆ OFStreamSocketAcceptedHandler
A handler which is called when the socket accepted a connection.
- Parameters
-
socket | The socket which accepted the connection |
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 handler should be used for the next incoming connection
◆ OFStreamSocketAsyncAcceptBlock
typedef bool(^ OFStreamSocketAsyncAcceptBlock) (OFStreamSocket *acceptedSocket, id exception) |
A block which is called when the socket accepted a connection.
- Deprecated
- Use OFStreamSocketAcceptedHandler instead.
- 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