Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7255 in orxonox.OLD for branches/preferences/src/lib


Ignore:
Timestamp:
Mar 30, 2006, 11:11:16 AM (19 years ago)
Author:
rennerc
Message:

one char* removed

Location:
branches/preferences/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/preferences/src/lib/network/network_manager.cc

    r6695 r7255  
    8888 * @param hostName: the name of the destination host
    8989 */
    90 int NetworkManager::establishConnection(const char* name, unsigned int port)
     90int NetworkManager::establishConnection(const std::string & name, unsigned int port)
    9191{
    9292  IPaddress ipAddress;
    93   int error = SDLNet_ResolveHost(&ipAddress, name, port);
     93  int error = SDLNet_ResolveHost(&ipAddress, name.c_str(), port);
    9494  if( error == -1) {
    9595    printf("\n\nerror on address resolution, program inconsistency\n\n");
  • branches/preferences/src/lib/network/network_manager.h

    r6981 r7255  
    3636    void shutdown();
    3737
    38     int establishConnection(const char* name, unsigned int port);
     38    int establishConnection( const std::string & name, unsigned int port);
    3939    int createServer(unsigned int port);
    4040
Note: See TracChangeset for help on using the changeset viewer.