Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2006, 11:40:29 AM (18 years ago)
Author:
rennerc
Message:

hover registers sync vars. started with connection monitor

File:
1 edited

Legend:

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

    r7731 r7767  
    1212
    1313#include "data_stream.h"
    14 #include "network_protocol.h"
    1514#include "server_socket.h"
    1615#include "handshake.h"
     16#include "connection_monitor.h"
    1717
    1818class Synchronizeable;
    1919class NetworkSocket;
    2020class ServerSocket;
    21 class ConnectionMonitor;
    22 class NetworkProtocol;
    2321class NetworkGameManager;
    2422
     
    2725  public:
    2826    PeerInfo() { clear(); }
    29     void clear() { userId = 0; isServer = false; socket = NULL; handshake = NULL; lastAckedState = 0; lastRecvedState = 0; }
    30     int               userId;
    31     bool              isServer;
    32     NetworkSocket *   socket;
    33     Handshake *       handshake;
    34     int               lastAckedState;
    35     int               lastRecvedState;
    36     std::map<int,int> sentStateTicks;
    37     std::list<int>    ackDelay;
    38     int               ping;
     27    void clear() { userId = 0; isServer = false; socket = NULL; handshake = NULL; lastAckedState = 0; lastRecvedState = 0; connectionMonitor = NULL; }
     28    int                 userId;
     29    bool                isServer;
     30    NetworkSocket *     socket;
     31    Handshake *         handshake;
     32    ConnectionMonitor * connectionMonitor;
     33    int                 lastAckedState;
     34    int                 lastRecvedState;
    3935};
    4036
     
    8581    void handleDownstream();
    8682    void handleNewClient( int userId );
     83    void cleanUpOldSyncList();
    8784
    8885
    8986  private:
    90     NetworkProtocol*           networkProtocol;
    91     ConnectionMonitor*         connectionMonitor;
    9287    SynchronizeableList        synchronizeables;
    9388    PeerList                   peers;
    9489    ServerSocket*              serverSocket;
    9590    int                        type;
    96     Header                     packetHeader;
    9791    bool                       bActive;
    9892    std::list<int>             freeSocketSlots;
Note: See TracChangeset for help on using the changeset viewer.