X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FINet%2FINetAddressing.hh;h=362e55cc1b2cfc860fc751cc50c2ff60bc30ec1a;hb=a1fdb7bb122f0b05be809a922d4b7ef5e125fa67;hp=aeb76bdb7a046bae9973162d6d7046c316471464;hpb=1004d55779889e573ab51cf007ea5e25434165a7;p=senf.git diff --git a/Socket/Protocols/INet/INetAddressing.hh b/Socket/Protocols/INet/INetAddressing.hh index aeb76bd..362e55c 100644 --- a/Socket/Protocols/INet/INetAddressing.hh +++ b/Socket/Protocols/INet/INetAddressing.hh @@ -24,8 +24,8 @@ \brief INet[46]Address and INet[46]AddressingPolicy public header */ -#ifndef HH_INetAddressing_ -#define HH_INetAddressing_ 1 +#ifndef HH_SENF_Socket_Protocols_INet_INetAddressing_ +#define HH_SENF_Socket_Protocols_INet_INetAddressing_ 1 // Custom includes #include @@ -109,6 +109,7 @@ namespace senf { \related INet4SocketAddress */ std::ostream & operator<<(std::ostream & os, INet4SocketAddress const & addr); + std::istream & operator>>(std::istream & is, INet4SocketAddress & addr); /** \brief IPv6 socket address @@ -167,6 +168,8 @@ namespace senf { ///< Initialize from address and port INet6SocketAddress(INet6Address const & addr, unsigned port, std::string const & iface); ///< Initialize explicitly from given parameters + /**< \throws AddressSyntaxException if the + given iface cannot be resolved. */ explicit INet6SocketAddress(unsigned port); ///< Initialize from port and set to 'unspecified' addr /**< The address is set to [::] @@ -182,10 +185,12 @@ namespace senf { void address(INet6Address const & addr); ///< Change address unsigned port() const; ///< Get port number - void port(unsigned poirt); ///< Change port number + void port(unsigned port); ///< Change port number std::string iface() const; ///< Get interface name void iface(std::string const & iface); ///< Change interface + /**< \throws AddressSyntaxException if the + given iface cannot be resolved. */ using BSDSocketAddress::sockaddr_p; using BSDSocketAddress::socklen_p; @@ -202,6 +207,7 @@ namespace senf { \related INet6SocketAddress */ std::ostream & operator<<(std::ostream & os, INet6SocketAddress const & addr); + std::istream & operator>>(std::istream & is, INet6SocketAddress & addr); /// \addtogroup policy_impl_group /// @{