|
ObjFW
|
Go to the source code of this file.
Classes | |
| protocol | <OFSCTPSocketDelegate> |
| class | OFSCTPSocket |
| A class which provides methods to create and use SCTP sockets in one-to-one mode. More... | |
Typedefs | |
| typedef OFConstantString * | OFSCTPMessageInfoKey |
| A key for the SCTP message info. | |
| typedef OFDictionary * | OFSCTPMessageInfo |
| A dictionary mapping keys of type OFSCTPMessageInfoKey to their values. | |
| typedef void(^ | OFSCTPSocketConnectedHandler) (OFSCTPSocket *socket, OFString *host, uint16_t port, id exception) |
| A handler which is called when the socket connected. | |
| typedef bool(^ | OFSCTPSocketMessageReceivedHandler) (OFSCTPSocket *socket, void *buffer, size_t length, OFSCTPMessageInfo info, id exception) |
| A handler which is called when a message has been received. | |
| typedef OFData *(^ | OFSCTPSocketDataSentHandler) (OFSCTPSocket *socket, OFData *data, OFSCTPMessageInfo info, id exception) |
| A handler which is called when a message has been sent. | |
Variables | |
| const OFSCTPMessageInfoKey | OFSCTPStreamID |
| The SCTP stream ID for which the message was send / received. | |
| const OFSCTPMessageInfoKey | OFSCTPPPID |
| The Payload Protocol Identifier for the message. | |
| const OFSCTPMessageInfoKey | OFSCTPUnordered |
| Whether the message is send / received out of order. | |
| typedef OFConstantString* OFSCTPMessageInfoKey |
| typedef void(^ OFSCTPSocketConnectedHandler) (OFSCTPSocket *socket, OFString *host, uint16_t port, id exception) |
A handler which is called when the socket connected.
| socket | The socket which connected |
| host | The host connected to |
| port | The port on the host connected to |
| exception | An exception which occurred while connecting the socket or nil on success |
| typedef OFData *(^ OFSCTPSocketDataSentHandler) (OFSCTPSocket *socket, OFData *data, OFSCTPMessageInfo info, id exception) |
A handler which is called when a message has been sent.
| socket | The SCTP socket which sent a message |
| data | The data which was sent |
| info | Information about the message, see OFSCTPMessageInfo |
| exception | An exception which occurred while reading or nil on success |
| typedef bool(^ OFSCTPSocketMessageReceivedHandler) (OFSCTPSocket *socket, void *buffer, size_t length, OFSCTPMessageInfo info, id exception) |
A handler which is called when a message has been received.
| socket | The SCTP socket which received a message |
| buffer | The buffer the message has been written to |
| length | The length of the message |
| info | Information about the message, see OFSCTPMessageInfo |
| exception | An exception which occurred while receiving or nil on success |
|
extern |
|
extern |
The SCTP stream ID for which the message was send / received.
This is an uint16_t wrapped in an OFNumber.
|
extern |
Whether the message is send / received out of order.
Possible values are an OFNumber with either true or false.