Changeset 9426 in orxonox.OLD for branches/proxy/src/lib/network/proxy
- Timestamp:
- Jul 24, 2006, 2:49:33 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network/proxy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/proxy/network_settings.cc
r9416 r9426 51 51 52 52 // remove all unused proxy data again 53 for( int i = 0; i < this->proxies.size(); i++)53 for(unsigned int i = 0; i < this->proxies.size(); i++) 54 54 { 55 IP address*ip = this->proxies.back();55 IP ip = this->proxies.back(); 56 56 this->proxies.pop_back(); 57 delete ip;58 57 } 59 58 } … … 139 138 return; 140 139 141 IPaddress *ip = new IPaddress; 140 IP ip(proxyAddr, 9999); 141 printf("========== "); 142 ip.debug(); 142 143 143 SDLNet_ResolveHost( ip, proxyAddr.c_str(), 9999 ); 144 145 this->proxies.push_back(ip); 144 this->proxies.push_back(ip);//IP(proxyAddr, 9999)); 146 145 } 147 146 -
branches/proxy/src/lib/network/proxy/network_settings.h
r9410 r9426 48 48 void setProxyAddr(const std::string& proxyAddr); 49 49 /** @returns the list of proxy servers from the init file */ 50 inline std::vector<IP address*>* getProxyList() { return &this->proxies; }50 inline std::vector<IP>* getProxyList() { return &this->proxies; } 51 51 52 52 … … 61 61 float maxPlayerSaturation; //!< the saturation level from where on the proxy server should be activated 62 62 63 std::vector<IP address*>proxies; //!< all registered proxies63 std::vector<IP> proxies; //!< all registered proxies 64 64 IP masterServer; //!< master server ip address 65 65
Note: See TracChangeset
for help on using the changeset viewer.