23 #ifndef __ccxx_DatagramSocket_hxx 24 #define __ccxx_DatagramSocket_hxx 69 void connect(
const String &addr, uint16_t port);
91 size_t send(
const byte_t* buffer,
size_t buflen);
133 size_t receive(
byte_t* buffer,
size_t buflen);
177 void setBroadcast(
bool flag);
185 bool getBroadcast()
const;
197 #endif // __ccxx_DatagramSocket_hxx
static const size_t MAX_DATAGRAM_SIZE
The maximum size of a datagram packet.
Definition: DatagramSocket.h++:188
A base class for network sockets.
Definition: Socket.h++:61
A socket endpoint network address.
Definition: SocketAddress.h++:46
#define COMMONCPP_API
Definition: Common.h++:126
A buffer for storing a contiguous sequence of elements.
Definition: Buffer.h++:44
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
#define CCXX_COPY_DECLS(CLASS)
Inlines declarations of a copy constructor and assignment operator for the class CLASS.
Definition: Common.h++:295
Definition: AllocationMap.c++:25
A User Datagram (UDP) socket.
Definition: DatagramSocket.h++:43
unsigned char byte_t
An unsigned 8-bit value.
Definition: Integers.h++:68