Changeset 9360 in orxonox.OLD for branches/proxy/src/lib/network/ip.h
- Timestamp:
- Jul 20, 2006, 3:49:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/ip.h
r9347 r9360 36 36 /** @returns the IP */ 37 37 int host() const { return this->_ip; }; 38 int* hostRef() { return &this->_ip; } 38 39 /** @returns the Port */ 39 short port() const { return this->_port; }; 40 int port() const { return this->_port; }; 41 int* portRef() { return &this->_port; }; 42 40 43 inline IPaddress getSDLNotation() { IPaddress sdlIP; sdlIP.host = this->_ip; sdlIP.port = this->_port; return sdlIP; } 41 44 … … 52 55 static std::string ipToString(int ip, int port = -1); 53 56 54 static void setDefaultPort( short defaultPort);55 static short defaultPort(short defaultPort) { return IP::_defaultPort; };57 static void setDefaultPort(int defaultPort); 58 static int defaultPort(int defaultPort) { return IP::_defaultPort; }; 56 59 57 60 private: 58 61 int _ip; //!< The IP in int form. 59 short _port; //!< The Port number of the IP62 int _port; //!< The Port number of the IP 60 63 61 static short _defaultPort; //!< Default Port64 static int _defaultPort; //!< Default Port 62 65 }; 63 66
Note: See TracChangeset
for help on using the changeset viewer.