Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5733 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Nov 23, 2005, 3:08:07 PM (19 years ago)
Author:
rennerc
Message:

network_socket: changed type of ip in constructor

Location:
branches/network/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_socket.cc

    r5732 r5733  
    6363 * Constructor to connect directly
    6464 */
    65 NetworkSocket::NetworkSocket(char * ipAddress, unsigned int port)
     65NetworkSocket::NetworkSocket(IPaddress ip, unsigned int port)
    6666{
    6767  NetworkSocket();
    68   IPaddress ip;
    69   SDLNet_ResolveHost(&ip, ipAddress, port);
    7068  connectToServer(ip, port);
    7169}
  • branches/network/src/lib/network/network_socket.h

    r5732 r5733  
    7373
    7474  NetworkSocket();
    75   NetworkSocket(char * ipAddress, unsigned int port);
     75  NetworkSocket(IPaddress ip, unsigned int port);
    7676  ~NetworkSocket();
    7777
  • branches/network/src/subprojects/network/network_unit_test.cc

    r5732 r5733  
    3030int testSocket(int argc, char** argv)
    3131{
     32  IPaddress ip;
     33  SDLNet_ResolveHost(&ip, "127.0.0.1", 9999);
    3234  NetworkSocket server;
    3335  server.listen(9999);
    3436  SDL_Delay(20);
    3537
    36   NetworkSocket client("127.0.0.1", 9999);
     38  NetworkSocket client(ip, 9999);
    3739
    3840  char buf[1024];
Note: See TracChangeset for help on using the changeset viewer.