Changeset 7256 in orxonox.OLD for trunk/src/lib/network
- Timestamp:
- Mar 30, 2006, 11:45:31 AM (19 years ago)
- Location:
- trunk/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/network_manager.cc
r6695 r7256 88 88 * @param hostName: the name of the destination host 89 89 */ 90 int NetworkManager::establishConnection(const char*name, unsigned int port)90 int NetworkManager::establishConnection(const std::string & name, unsigned int port) 91 91 { 92 92 IPaddress ipAddress; 93 int error = SDLNet_ResolveHost(&ipAddress, name , port);93 int error = SDLNet_ResolveHost(&ipAddress, name.c_str(), port); 94 94 if( error == -1) { 95 95 printf("\n\nerror on address resolution, program inconsistency\n\n"); -
trunk/src/lib/network/network_manager.h
r6981 r7256 36 36 void shutdown(); 37 37 38 int establishConnection( const char*name, unsigned int port);38 int establishConnection( const std::string & name, unsigned int port); 39 39 int createServer(unsigned int port); 40 40
Note: See TracChangeset
for help on using the changeset viewer.