Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 230 for code/branches


Ignore:
Timestamp:
Nov 20, 2007, 10:18:11 PM (17 years ago)
Author:
scheusso
Message:

created base-class Synchronisable; the files are still quite empty

Location:
code/branches/network/src/network
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/Client.cc

    r229 r230  
    55//
    66//
    7 // Author:  <>, (C) 2007
     7// Author:  Oliver Scheuss, (C) 2007
    88//
    99// Copyright: See COPYING file that comes with this distribution
  • code/branches/network/src/network/Client.h

    r229 r230  
    55//
    66//
    7 // Author:  <>, (C) 2007
     7// Author:  Oliver Scheuss, (C) 2007
    88//
    99// Copyright: See COPYING file that comes with this distribution
  • code/branches/network/src/network/ConnectionManager.cc

    r229 r230  
    2727  }
    2828 
    29   ConnectionManager::ConnectionManager(int port, int address){
     29  ConnectionManager::ConnectionManager(int port, std::string address){
    3030    quit=false;
    3131    client=NULL;
    32     bindAddress.host = address;
     32    enet_address_set_host (& bindAddress, address.c_str());
    3333    bindAddress.port = NETWORK_PORT;
    3434  }
    3535 
     36  ConnectionManager::ConnectionManager(int port, const char *address){
     37    quit=false;
     38    client=NULL;
     39    enet_address_set_host (& bindAddress, address);
     40    bindAddress.port = NETWORK_PORT;
     41  }
    3642 
    3743  ENetPacket *ConnectionManager::getPacket(ENetAddress &address){
  • code/branches/network/src/network/ConnectionManager.h

    r211 r230  
    1414
    1515#include <iostream>
     16#include <string>
    1617// enet library for networking support
    1718#include <enet/enet.h>
     
    4445    public:
    4546    ConnectionManager();
    46     ConnectionManager(int port, int address);
     47    ConnectionManager(int port, const char *address);
     48    ConnectionManager(int port, std::string address);
    4749    ENetPacket *getPacket(ENetAddress &address); // thread1
    4850    // check wheter the packet queue is empty
  • code/branches/network/src/network/Makefile

    r229 r230  
    2525Client.o: Client.cc
    2626        ${CC} -c Client.cc -g ${INC}
     27Server.o: Server.cc
     28        ${CC} -c Server.cc -g ${INC}
    2729
    2830clean:
Note: See TracChangeset for help on using the changeset viewer.