17 #import "OFKernelEventObserver.h"
22 OF_ASSUME_NONNULL_BEGIN
41 id _Nullable exception);
54 id _Nullable exception);
77 didReceiveIntoBuffer: (
void *)buffer
78 length: (
size_t)length
80 exception: (nullable
id)exception;
92 didSendData: (
OFData *)data
94 exception: (nullable
id)exception;
115 bool _canSendToBroadcastAddresses;
126 @property (nonatomic)
bool canBlock;
131 @property (nonatomic)
bool canSendToBroadcastAddresses;
139 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
147 + (instancetype)socket;
160 - (size_t)receiveIntoBuffer: (
void *)buffer
161 length: (
size_t)length
173 - (void)asyncReceiveIntoBuffer: (
void *)buffer length: (
size_t)length;
185 - (void)asyncReceiveIntoBuffer: (
void *)buffer
186 length: (
size_t)length
189 #ifdef OF_HAVE_BLOCKS
205 - (void)asyncReceiveIntoBuffer: (
void *)buffer
206 length: (
size_t)length
225 - (void)asyncReceiveIntoBuffer: (
void *)buffer
226 length: (
size_t)length
239 - (void)sendBuffer: (const
void *)buffer
240 length: (
size_t)length
250 - (void)asyncSendData: (
OFData *)data
261 - (void)asyncSendData: (
OFData *)data
265 #ifdef OF_HAVE_BLOCKS
276 - (void)asyncSendData: (
OFData *)data
291 - (void)asyncSendData: (
OFData *)data
300 - (void)cancelAsyncRequests;
309 OF_ASSUME_NONNULL_END
OFData *_Nullable(^ of_datagram_socket_async_send_data_block_t)(OFData *_Nonnull data, const of_socket_address_t *_Nonnull receiver, id _Nullable exception)
A block which is called when a packet has been sent.
Definition: OFDatagramSocket.h:52
bool(^ of_datagram_socket_async_receive_block_t)(size_t length, const of_socket_address_t *_Nonnull sender, id _Nullable exception)
A block which is called when a packet has been received.
Definition: OFDatagramSocket.h:39
struct objc_object * id
A pointer to any object.
Definition: ObjFWRT.h:90
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:40
A base class for datagram sockets.
Definition: OFDatagramSocket.h:112
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A protocol for the creation of copies.
Definition: OFObject.h:1187
A delegate for OFDatagramSocket.
Definition: OFDatagramSocket.h:63
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition: OFKernelEventObserver.h:85
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition: OFKernelEventObserver.h:100
A struct which represents a host / port pair for a socket.
Definition: socket.h:136