Changeset 9306 in orxonox.OLD for branches/proxy/src/lib/network/ip.h
- Timestamp:
- Jul 17, 2006, 2:21:42 PM (19 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/ip.h
r9305 r9306 2 2 /*! 3 3 * @file ip.h 4 * @brief Definition of Time Class.5 4 * 6 * These are mainly Classes, that are used for wrapping around SDL_thread 5 * @brief the ip class is used to transform strings to ip's and backwards 6 * it can also be used to 7 * 7 8 */ 8 9 … … 21 22 IP(); 22 23 IP(const std::string& ip); 23 IP(int ip); 24 IP(int ip, int port); 25 IP(const IPaddress& ip); 26 IP(const IP& ip); 27 28 const IP& operator=(const IP& ip); 29 bool operator==(const IP& ip); 24 30 25 31 … … 27 33 short port() const { return this->_port; }; 28 34 29 int ip (unsigned int part) const;30 std::string &ipString() const;35 int ipPart(unsigned int part) const; 36 std::string ipString() const; 31 37 32 38 33 39 34 40 public: 35 static int stringToIP(const std::string& ip); 41 static IP stringToIP(const std::string& ip); 42 43 36 44 static std::string ipToString(const IPaddress& ipaddr); 37 45 static std::string ipToString(int ip); 38 46 39 47 private: 40 int _ip; //!< the IP in int form.41 short _port; 48 int _ip; //!< The IP in int form. 49 short _port; //!< The Port number of the IP 42 50 43 51 };
Note: See TracChangeset
for help on using the changeset viewer.