Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 23, 2006, 10:07:23 PM (19 years ago)
Author:
patrick
Message:

committing my weekends work: 2100 lines :D

  • proxy server now accepts and synchronizes clients like a master server
  • network manager got different network setup interface
  • network stream got different constructure scheme
  • permissions checking and algorithm extended and changed
  • starting ability to connect to multiple network nodes at the same time
  • some very much smaller changes here and there
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/network_stream.h

    r9347 r9396  
    3636  public:
    3737    NetworkStream();
    38     NetworkStream( std::string host, int port);
    39     NetworkStream( int port );
     38    NetworkStream(int nodeType);
     39    virtual ~NetworkStream();
    4040
    41     virtual ~NetworkStream();
    4241    void init();
     42
     43    void connectToMasterServer(std::string host, int port);
     44    void connectToProxyServer(std::string host, int port);
     45    void createServer(int port);
    4346
    4447    void createNetworkGameManager();
     
    4952    void disconnectSynchronizeable(Synchronizeable& sync);
    5053
    51     /* functions for the localhost settings */
    52     inline bool isMasterServer() const { return (this->pInfo->nodeType == NET_MASTER_SERVER)? true:false; }
    53     inline bool isProxyServer() const { return (this->pInfo->nodeType == NET_PROXY_SERVER_ACTIVE)? true:false; }
    54     inline bool isClient() const { return (this->pInfo->nodeType == NET_CLIENT)? true:false; }
    55 //     inline bool isActive() const { return this->bActive; }
    5654    inline int getMaxConnections(){ return SharedNetworkData::getInstance()->getMaxPlayer(); }
    5755
Note: See TracChangeset for help on using the changeset viewer.