23OF_ASSUME_NONNULL_BEGIN
86 OFString *host, uint16_t port,
id _Nullable exception);
101 id _Nullable exception);
122@protocol OFSCTPSocketDelegate <OFSequencedPacketSocketDelegate>
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)
200 id <OFSCTPSocketDelegate> delegate;
210- (
void)connectToHost: (
OFString *)host port: (uint16_t)port;
218- (
void)asyncConnectToHost: (
OFString *)host port: (uint16_t)port;
227- (
void)asyncConnectToHost: (
OFString *)host
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
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
405- (void)asyncSendData: (
OFData *)data
420- (void)asyncSendData: (
OFData *)data
OFConstantString * OFSCTPMessageInfoKey
A key for the SCTP message info.
Definition OFSCTPSocket.h:40
const OFSCTPMessageInfoKey OFSCTPStreamID
The SCTP stream ID for which the message was send / received.
Definition OFSCTPSocket.m:61
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
const OFSCTPMessageInfoKey OFSCTPUnordered
Whether the message is send / received out of order.
Definition OFSCTPSocket.m:63
void(^ OFSCTPSocketConnectedHandler)(OFSCTPSocket *socket, OFString *host, uint16_t port, id exception)
A handler which is called when the socket connected.
Definition OFSCTPSocket.h:85
OFDictionary * OFSCTPMessageInfo
A dictionary mapping keys of type OFSCTPMessageInfoKey to their values.
Definition OFSCTPSocket.h:46
const OFSCTPMessageInfoKey OFSCTPPPID
The Payload Protocol Identifier for the message.
Definition OFSCTPSocket.m:62
A class for storing constant strings using the @"" literal.
Definition OFConstantString.h:42
A class for storing arbitrary data in an array.
Definition OFData.h:46
An abstract class for storing objects in a dictionary.
Definition OFDictionary.h:84
A class which provides methods to create and use SCTP sockets in one-to-one mode.
Definition OFSCTPSocket.h:180
A base class for sequenced packet sockets.
Definition OFSequencedPacketSocket.h:184
A class for handling strings.
Definition OFString.h:143
A struct which represents a host / port pair for a socket.
Definition OFSocket.h:189