Changeset 9310 in orxonox.OLD for branches/proxy/src/lib/network/ip.h
- Timestamp:
- Jul 18, 2006, 1:30:58 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/ip.h
r9307 r9310 21 21 public: 22 22 IP(); 23 IP(const std::string& ip );23 IP(const std::string& ip, int port = -1, bool resolve = true); 24 24 IP(int ip, int port); 25 25 IP(const IPaddress& ip); … … 30 30 31 31 32 /** @returns the IP */ 32 33 int ip() const { return this->_ip; }; 34 /** @returns the Port */ 33 35 short port() const { return this->_port; }; 34 36 … … 36 38 std::string ipString() const; 37 39 38 39 40 40 public: 41 static IP stringToIP(const std::string& ip );41 static IP stringToIP(const std::string& ip, int port = -1, bool resolve = true); 42 42 43 43
Note: See TracChangeset
for help on using the changeset viewer.