Changeset 9385 in orxonox.OLD for branches/proxy/src/lib/network/ip.h
- Timestamp:
- Jul 21, 2006, 1:09:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/ip.h
r9383 r9385 26 26 IP(const IPaddress& ip); 27 27 IP(const IP& ip); 28 IP(unsigned int first, unsigned int second, unsigned int third, unsigned int fourth, int port = IP::_defaultPort); 28 29 29 30 /// OPERATORS … … 35 36 /// RETRIVEAL 36 37 /** @returns the IP */ 37 int host() const { return this->_ ip; };38 int* hostRef() { return &this->_ ip; }38 int host() const { return this->_host; }; 39 int* hostRef() { return &this->_host; } 39 40 /** @returns the Port */ 40 41 int port() const { return this->_port; }; 41 42 int* portRef() { return &this->_port; }; 42 43 43 inline IPaddress getSDLNotation() { IPaddress sdlIP; sdlIP.host = this->_ ip; sdlIP.port = this->_port; return sdlIP; }44 inline IPaddress getSDLNotation() { IPaddress sdlIP; sdlIP.host = this->_host; sdlIP.port = this->_port; return sdlIP; } 44 45 45 46 int ipPart(unsigned int part) const; … … 59 60 60 61 private: 61 int _ ip; //!< The IP in int form.62 int _port; //!< The Port number of the IP62 int _host; //!< The IP in int form. 63 int _port; //!< The Port number of the IP 63 64 64 static int _defaultPort; //!< Default Port65 static int _defaultPort; //!< Default Port 65 66 }; 66 67
Note: See TracChangeset
for help on using the changeset viewer.