ndn::ip Namespace Reference

Functions

boost::asio::ip::address addressFromString (const std::string &str, boost::system::error_code &ec)
 parse and convert the input string into an IP address More...
 
boost::asio::ip::address addressFromString (const std::string &str)
 parse and convert the input string into an IP address More...
 
boost::asio::ip::address_v6 addressV6FromString (const std::string &str, boost::system::error_code &ec)
 parse and convert the input string into an IPv6 address More...
 
boost::asio::ip::address_v6 addressV6FromString (const std::string &str)
 parse and convert the input string into an IPv6 address More...
 

Function Documentation

boost::asio::ip::address ndn::ip::addressFromString ( const std::string &  str,
boost::system::error_code &  ec 
)

parse and convert the input string into an IP address

Parameters
strthe string to parse
ecthe error code of failure in conversion
Returns
the converted IP address, or a default-constructed boost::asio::ip::address in case of failure

Definition at line 34 of file address-converter.cpp.

boost::asio::ip::address ndn::ip::addressFromString ( const std::string &  str)

parse and convert the input string into an IP address

Parameters
strthe string to parse
Returns
the converted IP address
Exceptions
boost::system::system_errorin case of failure

Definition at line 40 of file address-converter.cpp.

boost::asio::ip::address_v6 ndn::ip::addressV6FromString ( const std::string &  str,
boost::system::error_code &  ec 
)

parse and convert the input string into an IPv6 address

Parameters
strthe string to parse
ecthe error code of failure in conversion
Returns
the converted IPv6 address, or a default-constructed boost::asio::ip::address_v6 in case of failure

Definition at line 46 of file address-converter.cpp.

boost::asio::ip::address_v6 ndn::ip::addressV6FromString ( const std::string &  str)

parse and convert the input string into an IPv6 address

Parameters
strthe string to parse
Returns
the converted IPv6 address
Exceptions
boost::system::system_errorin case of failure

Definition at line 52 of file address-converter.cpp.