29#include <sptk5/Buffer.h>
30#include <sptk5/net/BaseSocket.h>
53 explicit UDPSocket(SOCKET_ADDRESS_FAMILY domain = AF_INET);
67 [[nodiscard]]
size_t read(uint8_t* buffer,
size_t size, sockaddr_in* from =
nullptr)
override;
76 [[nodiscard]]
size_t read(
Buffer& buffer,
size_t size, sockaddr_in* from =
nullptr)
override;
85 [[nodiscard]]
size_t read(
String& buffer,
size_t size, sockaddr_in* from =
nullptr)
override;
Definition: BaseSocket.h:87
Definition: UDPSocket.h:47
~UDPSocket() override=default
size_t read(uint8_t *buffer, size_t size, sockaddr_in *from=nullptr) override
UDPSocket(SOCKET_ADDRESS_FAMILY domain=AF_INET)
size_t read(String &buffer, size_t size, sockaddr_in *from=nullptr) override
size_t read(Buffer &buffer, size_t size, sockaddr_in *from=nullptr) override