|
ObjFW
|
Go to the source code of this file.
Classes | |
| protocol | <OFDatagramSocketDelegate> |
| A delegate for OFDatagramSocket. More... | |
| class | OFDatagramSocket |
| A base class for datagram sockets. More... | |
Typedefs | |
| typedef bool(^ | OFDatagramSocketAsyncReceiveBlock) (size_t length, const OFSocketAddress *sender, id exception) |
| A block which is called when a packet has been received. | |
| typedef bool(^ | OFDatagramSocketPacketReceivedHandler) (OFDatagramSocket *socket, void *buffer, size_t length, const OFSocketAddress *sender, id exception) |
| A handler which is called when a packet has been received. | |
| typedef OFData *(^ | OFDatagramSocketAsyncSendDataBlock) (id exception) |
| A block which is called when a packet has been sent. | |
| typedef OFData *(^ | OFDatagramSocketDataSentHandler) (OFDatagramSocket *socket, OFData *data, const OFSocketAddress *receiver, id exception) |
| A handler which is called when a packet has been sent. | |
| typedef bool(^ OFDatagramSocketAsyncReceiveBlock) (size_t length, const OFSocketAddress *sender, id exception) |
A block which is called when a packet has been received.
| 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 |
| typedef OFData *(^ OFDatagramSocketAsyncSendDataBlock) (id exception) |
A block which is called when a packet has been sent.
| exception | An exception which occurred while reading or nil on success |
| typedef OFData *(^ OFDatagramSocketDataSentHandler) (OFDatagramSocket *socket, OFData *data, const OFSocketAddress *receiver, id exception) |
A handler which is called when a packet has been sent.
| 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 |
| typedef bool(^ OFDatagramSocketPacketReceivedHandler) (OFDatagramSocket *socket, void *buffer, size_t length, const OFSocketAddress *sender, id exception) |
A handler which is called when a packet has been received.
| 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 |