X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FINet%2FINetAddressing.hh;h=5389b65de8e3c05bf4aab1ba4b470eee39c6dfc9;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=e3a95d337488171c156bc6a5ee1ced265f159d1b;hpb=fa696fb7164ff243f6b7c1c5bda35ed75af153dc;p=senf.git diff --git a/Socket/Protocols/INet/INetAddressing.hh b/Socket/Protocols/INet/INetAddressing.hh index e3a95d3..5389b65 100644 --- a/Socket/Protocols/INet/INetAddressing.hh +++ b/Socket/Protocols/INet/INetAddressing.hh @@ -154,14 +154,17 @@ namespace senf { ///@{ INet6SocketAddress(); ///< Create empty instance - explicit INet6SocketAddress(std::string const & addr); + explicit INet6SocketAddress(std::string const & addr, + INet6Address::Resolve_t resolve = INet6Address::ResolveINet6); ///< Initialize/convert from string representation + /**< \param[in] addr Address to parse + \param[in] resolve If this is + INet6Address::ResolveINet4, support also IpV4 + addresses. See INet6Address. */ INet6SocketAddress(INet6Address const & addr, unsigned port); ///< Initialize from address and port INet6SocketAddress(INet6Address const & addr, unsigned port, std::string const & iface); ///< Initialize explicitly from given parameters - INet6SocketAddress(std::string const & addr, std::string const & iface); - ///< Initialize from URL representation and explit interface ///@} /////////////////////////////////////////////////////////////////////////// @@ -197,7 +200,6 @@ namespace senf { protected: private: - void assignAddr(std::string const & addr); void assignIface(std::string const & iface); struct sockaddr_in6 sockaddr_;