sources/network/ipaddress.h

changeset 8
8b697d30c49f
parent 7
01e4e9ae323a
child 9
e7a09ceb4505
equal deleted inserted replaced
7:01e4e9ae323a 8:8b697d30c49f
28 28
29 static METHOD from_string (String input, bool* ok = &sink) -> IPAddress; 29 static METHOD from_string (String input, bool* ok = &sink) -> IPAddress;
30 static METHOD resolve (String node, bool* ok = &sink) -> IPAddress; 30 static METHOD resolve (String node, bool* ok = &sink) -> IPAddress;
31 }; 31 };
32 32
33 extern const IPAddress localhost; 33 static const unsigned long localhost = 0x7F000001;
34 34
35 inline METHOD 35 inline METHOD
36 IPAddress::operator[] (int n) const -> unsigned char 36 IPAddress::operator[] (int n) const -> unsigned char
37 { 37 {
38 return octet (n); 38 return octet (n);

mercurial