4#include <cosmos/net/Socket.hxx>
5#include <cosmos/net/types.hxx>
6#include <cosmos/net/UnixAddress.hxx>
7#include <cosmos/net/UnixOptions.hxx>
24 auto unixOptions()
const {
FileDescriptor fd() const
Allows access to the underlying fd with const semantics.
Thin Wrapper around OS file descriptors.
Base class for Socket types with ownership of a FileDescriptor.
void sendMessage(SendMessageHeader &header, const SocketAddress *addr=nullptr)
Sends a message over the socket using extended SendMessageHeader data.
AddressFilledIn receiveMessage(ReceiveMessageHeader &header, SocketAddress *addr=nullptr)
Receives a message from the socket using extended ReceiveMessageHeader data.
size_t receive(void *buf, size_t length, const MessageFlags flags=MessageFlags{})
Receive data from the socket, using specific receive flags.
size_t send(const void *buf, size_t length, const MessageFlags flags=MessageFlags{})
Send the given data over the socket, using specific send flags.
An active UNIX domain socket connection.
UnixSocket level option setter/getter helper.