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); |