1#ifndef NET_UnixDatagramSocket_h__
2#define NET_UnixDatagramSocket_h__
39 [[nodiscard]]
static std::pair<UnixDatagramSocket, UnixDatagramSocket>
51 IOResult sendTo(
const void* buffer,
size_t len, std::string_view foreignPath);
IOResult receiveFrom(void *buffer, size_t len, std::string &sourcePath)
IOResult timedReceiveFrom(void *buffer, size_t len, std::string &sourcePath, int timeout)
static std::pair< UnixDatagramSocket, UnixDatagramSocket > createPair(bool nonBlocking=false)
IOResult sendTo(const void *buffer, size_t len, std::string_view foreignPath)
UnixSocket(int type, int protocol)
allows a subclass to create new socket
static UnixDatagramSocket adoptNativeHandle(int sockfd)
Take ownership of an existing native Unix datagram socket descriptor.
UnixSocket(int type, int protocol)
allows a subclass to create new socket