Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6695 in orxonox.OLD for trunk/src/lib/network/network_stream.h


Ignore:
Timestamp:
Jan 25, 2006, 2:39:53 PM (18 years ago)
Author:
patrick
Message:

merged the network branche to the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/network_stream.h

    r6634 r6695  
    1414#include "server_socket.h"
    1515#include "handshake.h"
    16 
    17 #define MAX_CONNECTIONS 1000
    1816
    1917class Synchronizeable;
     
    4038    void init();
    4139
     40    void createNetworkGameManager();
     41    void startHandshake();
     42
    4243    void connectSynchronizeable(Synchronizeable& sync);
    4344    void disconnectSynchronizeable(Synchronizeable& sync);
     
    5354    inline SynchronizeableList::const_iterator getSyncBegin(){ return synchronizeables.begin(); }
    5455    inline SynchronizeableList::const_iterator getSyncEnd(){ return synchronizeables.end(); }
    55     inline int getSyncCount(){ return synchronizeables.size(); }
     56    int getSyncCount();
    5657
    5758    inline bool isUserIdActive( int userID ) { if (userID>=networkSockets.size()) return false; else return networkSockets[userID]!=NULL; }
    5859
     60    void debug();
     61
     62
    5963  private:
    60     NetworkProtocol*       networkProtocol;
    61     ConnectionMonitor*     connectionMonitor;
    62     SynchronizeableList    synchronizeables;
    63     NetworkSocketVector    networkSockets;
    64     HandshakeVector        handshakes;
    65     ServerSocket*          serverSocket;
    66     int                    type;
    67     Header                 packetHeader;
    68     bool                   bActive;
    69     std::list<int>         freeSocketSlots;
     64    void updateConnectionList();
    7065
    71     int                    myHostId;
    72     int                    maxConnections;
    7366
    74     NetworkGameManager*   networkGameManager;
     67  private:
     68    NetworkProtocol*           networkProtocol;
     69    ConnectionMonitor*         connectionMonitor;
     70    SynchronizeableList        synchronizeables;
     71    NetworkSocketVector        networkSockets;
     72    HandshakeVector            handshakes;
     73    ServerSocket*              serverSocket;
     74    int                        type;
     75    Header                     packetHeader;
     76    bool                       bActive;
     77    std::list<int>             freeSocketSlots;
    7578
    76     void updateConnectionList();
     79    int                        myHostId;
     80    int                        maxConnections;
     81
     82    NetworkGameManager*        networkGameManager;
    7783};
    7884#endif /* _NETWORK_STREAM */
Note: See TracChangeset for help on using the changeset viewer.