Add toString for IPv4Address

This commit is contained in:
Vinnie Falco
2013-08-25 01:13:10 -07:00
parent 46e5dc2f5c
commit 3c79ebda17

View File

@@ -339,6 +339,14 @@ struct Get <UInt8Str>
struct IPv4Address
{
uint8 value [4];
String toString () const
{
return String::fromNumber <int> (value [0]) + "." +
String::fromNumber <int> (value [1]) + "." +
String::fromNumber <int> (value [2]) + "." +
String::fromNumber <int> (value [3]);
}
};
template <>