64 }; |
64 }; |
65 |
65 |
66 unsigned long host; |
66 unsigned long host; |
67 unsigned short port; |
67 unsigned short port; |
68 |
68 |
69 IPAddress(); |
|
70 IPAddress (unsigned long host, unsigned short port); |
|
71 IPAddress (const IPAddress& other); |
|
72 |
|
73 bool compare (const IPAddress& other) const; |
69 bool compare (const IPAddress& other) const; |
74 unsigned char octet (int n) const; |
70 unsigned char octet (int n) const; |
75 void set_octet (int n, unsigned char oct); |
71 void set_octet (int n, unsigned char oct); |
76 std::string to_string (WithPort withport = NO_PORT) const; |
72 std::string to_string (WithPort withport = NO_PORT) const; |
77 sockaddr_in to_sockaddr_in() const; |
73 sockaddr_in to_sockaddr_in() const; |