import "OFObject.h"
import "OFKernelEventObserver.h"
import "OFRunLoop.h"
import "OFSocket.h"
Go to the source code of this file.
◆ OFSequencedPacketSocketAcceptedHandler
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
◆ OFSequencedPacketSocketAsyncAcceptBlock
A block which is called when the socket accepted a connection.
- Deprecated
- Use OFSequencedPacketSocketAcceptedHandler 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
◆ OFSequencedPacketSocketAsyncReceiveBlock
| typedef bool(^ OFSequencedPacketSocketAsyncReceiveBlock) (size_t length, id exception) |
A block which is called when a packet has been received.
- Deprecated
- Use OFSequencedPacketSocketPacketReceivedHandler instead.
- Parameters
-
| length | The length of the packet |
| exception | An exception which occurred while receiving or nil on success |
- Returns
- A bool whether the same block should be used for the next receive
◆ OFSequencedPacketSocketAsyncSendDataBlock
| typedef OFData *(^ OFSequencedPacketSocketAsyncSendDataBlock) (id exception) |
A block which is called when a packet has been sent.
- Deprecated
- Use OFSequencedPacketSocketDataSentHandler instead.
- Parameters
-
| exception | An exception which occurred while reading or nil on success |
- Returns
- The data to repeat the send with or nil if it should not repeat
◆ OFSequencedPacketSocketDataSentHandler
A handler which is called when a packet has been sent.
- Parameters
-
| socket | The sequenced packet socket which sent a packet |
| data | The data which was sent |
| exception | An exception which occurred while reading or nil on success |
- Returns
- The data to repeat the send with or nil if it should not repeat
◆ OFSequencedPacketSocketPacketReceivedHandler
| typedef bool(^ OFSequencedPacketSocketPacketReceivedHandler) (OFSequencedPacketSocket *socket, void *buffer, size_t length, id exception) |
A handler which is called when a packet has been received.
- Parameters
-
| socket | The sequenced packet socket which received a packet |
| buffer | The buffer the packet has been written to |
| length | The length of the packet |
| exception | An exception which occurred while receiving or nil on success |
- Returns
- A bool whether the same handler should be used for the next receive