import "OFObject.h"
import "OFKernelEventObserver.h"
import "OFRunLoop.h"
import "OFSocket.h"
Go to the source code of this file.
◆ OFDatagramSocketAsyncReceiveBlock
typedef bool(^ OFDatagramSocketAsyncReceiveBlock) (size_t length, const OFSocketAddress *sender, id exception) |
A block which is called when a packet has been received.
- Deprecated
- Use OFDatagramSocketPacketReceivedHandler instead.
- Parameters
-
length | The length of the packet |
sender | The address of the sender 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
◆ OFDatagramSocketAsyncSendDataBlock
typedef OFData *(^ OFDatagramSocketAsyncSendDataBlock) (id exception) |
A block which is called when a packet has been sent.
- Deprecated
- Use OFDatagramSocketDataSentHandler 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
◆ OFDatagramSocketDataSentHandler
A handler which is called when a packet has been sent.
- Parameters
-
socket | The datagram socket which sent a packet |
data | The data which was sent |
receiver | The receiver for the packet |
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
◆ OFDatagramSocketPacketReceivedHandler
A handler which is called when a packet has been received.
- Parameters
-
socket | The socket that received a packet |
buffer | The buffer the packet was stored in |
length | The length of the packet |
sender | The address of the sender 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