18 #ifndef HH_SENF_Socket_Protocols_INet_INetAddressing_ 19 #define HH_SENF_Socket_Protocols_INet_INetAddressing_ 1 23 #include <netinet/in.h> 82 unsigned port()
const;
85 void port(
unsigned p);
91 struct ::sockaddr_in addr_;
174 unsigned port()
const;
177 std::string iface()
const;
178 void iface(std::string
const & iface);
188 void assignIface(std::string
const & iface);
190 struct sockaddr_in6 sockaddr_;
static short const addressFamily
Addressing policy supporting IPv6 addressing.
INet6SocketAddress Address
INet4SocketAddress & operator=(const INet4SocketAddress &other)
BSDSocketAddress public header.
Addressing policy supporting IPv4 addressing.
INet6Address public header.
std::istream & operator>>(std::istream &is, INet4SocketAddress &addr)
INet4Address public header.
std::ostream & operator<<(std::ostream &os, INet4SocketAddress const &addr)
Write address and port to os.
socklen_t const * socklen_p() const
Socket addressing, BSD style.
struct sockaddr const * sockaddr_p() const
BSDAddressingPolicyMixin public header.
INet4SocketAddress Address
unsigned port() const
Return port number.
Template for generic AddressingPolicy implementation based on the BSD socket API. ...
INet4Address address() const
Return address.