21 #include <boost/io/ios_state.hpp> 40 boost::io::ios_all_saver ias(os);
41 os << std::hex << std::setfill(
'0') << std::right
42 << std::setw(2) << unsigned(eui[0]) <<
":" 43 << std::setw(2) << unsigned(eui[1]) <<
":" 44 << std::setw(2) << unsigned(eui[2]) <<
":" 45 << std::setw(2) << unsigned(eui[3]) <<
"-" 46 << std::setw(2) << unsigned(eui[4]) <<
":" 47 << std::setw(2) << unsigned(eui[5]) <<
":" 48 << std::setw(2) << unsigned(eui[6]) <<
":" 49 << std::setw(2) << unsigned(eui[7]);
62 is.setstate(std::ios::failbit);
static EUI64 from_string(std::string const &s)
Construct EUI-64 from string representation.
ParseString public header.
static EUI64 const None
The empty (0) address.
std::ostream & operator<<(std::ostream &os, Packet const &packet)
std::istream & operator>>(std::istream &is, INet4SocketAddress &addr)
void parseHexString(std::string const &value, char const *separator, ForwardIterator f, ForwardIterator l)
Base-class for Address exceptions.