Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 12, 2006, 11:07:25 AM (18 years ago)
Author:
patrick
Message:

peer info externed

File:
1 edited

Legend:

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

    r9251 r9252  
    1616#include "connection_monitor.h"
    1717#include "udp_server_socket.h"
     18#include "peer_info.h"
    1819
    1920class Synchronizeable;
     
    2122class ServerSocket;
    2223class NetworkGameManager;
    23 
    24 //!< this structure contains informations about the network node
    25 class PeerInfo
    26 {
    27   public:
    28     PeerInfo() { clear(); }
    29 
    30     void clear()
    31     {
    32       this->userId = 0;
    33       this->nodeType = NET_CLIENT;
    34       this->isMasterServer = false;
    35       this->isProxyServer = false;
    36       this->isClient = false;
    37       this->socket = NULL;
    38       this->handshake = NULL;
    39       this->lastAckedState = 0;
    40       this->lastRecvedState = 0;
    41       this->connectionMonitor = NULL;
    42     }
    43 
    44 
    45   public:
    46     int                 userId;
    47     int                 nodeType;
    48     bool                isMasterServer;
    49     bool                isProxyServer;
    50     bool                isClient;
    51     NetworkSocket *     socket;
    52     Handshake *         handshake;
    53     ConnectionMonitor * connectionMonitor;
    54     int                 lastAckedState;
    55     int                 lastRecvedState;
    56 };
    57 
    5824
    5925
Note: See TracChangeset for help on using the changeset viewer.