Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9252 in orxonox.OLD for branches


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

peer info externed

Location:
branches/proxy/src/lib/network
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/Makefile.am

    r8623 r9252  
    2020                      network_game_manager.cc \
    2121                      converter.cc \
     22                      peer_info.cc \
    2223                      message_manager.cc \
    2324                      network_log.cc \
     
    3334                      synchronizeable_var/synchronizeable_float.cc \
    3435                      synchronizeable_var/synchronizeable_bool.cc \
    35                       synchronizeable_var/synchronizeable_uint.cc 
     36                      synchronizeable_var/synchronizeable_uint.cc
    3637
    3738
     
    5455                 network_game_manager.h \
    5556                 converter.h \
     57                 peer_info.h \
    5658                 netdefs.h \
    5759                 message_manager.h \
  • branches/proxy/src/lib/network/network_stream.cc

    r9249 r9252  
    1212   main-programmer: Christoph Renner rennerc@ee.ethz.ch
    1313   co-programmer:   Patrick Boenzli  boenzlip@orxonox.ethz.ch
     14
     15     June 2006: finishing work on the network stream for pps presentation (rennerc@ee.ethz.ch)
     16     July 2006: some code rearangement and integration of the proxy server mechanism (boenzlip@ee.ethz.ch)
    1417*/
    1518
  • 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.