4#include <cosmos/net/types.hxx>
16template <SocketFamily>
25 static constexpr OptLevel OPT_LEVEL = OptLevel::IP;
28 using RawAddr = sockaddr_in;
37 static constexpr OptLevel OPT_LEVEL = OptLevel::IPV6;
40 using RawAddr = sockaddr_in6;
A 32-bit IPv4 address and 16 bit port number for use with SocketFamily::INET sockets.
IPv4 level socket option setter/getter helper.
A 128 bit IPv6 address and 16-bit port number plus some IPv6 specific extra fields.
IPv6 level socket option setter/getter helper.
IP6Message
Ancillary message types available for IPv6 based sockets.
OptLevel
Representation of socket option levels.
SocketFamily
A socket's family setting.
IP4Message
Ancillary message types available for IPv4 based sockets.