23 OF_ASSUME_NONNULL_BEGIN
86 OFString *host, uint16_t port,
id _Nullable exception);
101 id _Nullable exception);
136 exception: (nullable
id)exception;
150 didReceiveIntoBuffer: (
void *)buffer
151 length: (
size_t)length
153 exception: (nullable
id)exception;
165 didSendData: (
OFData *)data
167 exception: (nullable
id)exception;
191 @property (nonatomic)
bool canDelaySendingMessages;
199 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
210 - (
void)connectToHost: (
OFString *)host port: (uint16_t)port;
218 - (
void)asyncConnectToHost: (
OFString *)host port: (uint16_t)port;
227 - (
void)asyncConnectToHost: (
OFString *)host
231 #ifdef OF_HAVE_BLOCKS 240 - (void)asyncConnectToHost: (
OFString *)host
253 - (void)asyncConnectToHost: (
OFString *)host
285 - (size_t)receiveIntoBuffer: (
void *)buffer
286 length: (
size_t)length
299 - (void)asyncReceiveWithInfoIntoBuffer: (
void *)buffer
300 length: (
size_t)length;
313 - (void)asyncReceiveWithInfoIntoBuffer: (
void *)buffer
314 length: (
size_t)length
317 #ifdef OF_HAVE_BLOCKS 334 asyncReceiveWithInfoIntoBuffer: (
void *)buffer
335 length: (
size_t)length
356 asyncReceiveWithInfoIntoBuffer: (
void *)buffer
357 length: (
size_t)length
371 - (void)sendBuffer: (const
void *)buffer
372 length: (
size_t)length
391 - (void)asyncSendData: (
OFData *)data
395 #ifdef OF_HAVE_BLOCKS 405 - (void)asyncSendData: (
OFData *)data
420 - (void)asyncSendData: (
OFData *)data
427 OF_ASSUME_NONNULL_END
OFDictionary * OFSCTPMessageInfo
A dictionary mapping keys of type OFSCTPMessageInfoKey to their values.
Definition: OFSCTPSocket.h:46
void(^ OFSCTPSocketConnectedHandler)(OFSCTPSocket *socket, OFString *host, uint16_t port, id exception)
A handler which is called when the socket connected.
Definition: OFSCTPSocket.h:85
A class which provides methods to create and use SCTP sockets in one-to-one mode. ...
Definition: OFSCTPSocket.h:179
const OFSCTPMessageInfoKey OFSCTPUnordered
Whether the message is send / received out of order.
Definition: OFSCTPSocket.m:63
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:41
bool(^ OFSCTPSocketMessageReceivedHandler)(OFSCTPSocket *socket, void *buffer, size_t length, OFSCTPMessageInfo info, id exception)
A handler which is called when a message has been received.
Definition: OFSCTPSocket.h:99
OFData *(^ OFSCTPSocketDataSentHandler)(OFSCTPSocket *socket, OFData *data, OFSCTPMessageInfo info, id exception)
A handler which is called when a message has been sent.
Definition: OFSCTPSocket.h:113
A struct which represents a host / port pair for a socket.
Definition: OFSocket.h:189
A class for handling strings.
Definition: OFString.h:142
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:82
const OFSCTPMessageInfoKey OFSCTPStreamID
The SCTP stream ID for which the message was send / received.
Definition: OFSCTPSocket.m:61
A class for storing arbitrary data in an array.
Definition: OFData.h:45
OFConstantString * OFSCTPMessageInfoKey
A key for the SCTP message info.
Definition: OFSCTPSocket.h:29
A base class for sequenced packet sockets.
Definition: OFSequencedPacketSocket.h:181
A delegate for OFSequencedPacketSocket.
const OFSCTPMessageInfoKey OFSCTPPPID
The Payload Protocol Identifier for the message.
Definition: OFSCTPSocket.m:62