Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9276 in orxonox.OLD


Ignore:
Timestamp:
Jul 13, 2006, 9:56:47 PM (18 years ago)
Author:
patrick
Message:

added new structure network node

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

Legend:

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

    r9275 r9276  
    88                      shared_network_data.cc \
    99                      network_socket.cc \
    10                       monitor/connection_monitor.cc \
    11                       monitor/network_monitor.cc \
    1210                      network_stream.cc \
    1311                      data_stream.cc \
     
    2826                      udp_broadcast.cc \
    2927                      \
     28                      monitor/connection_monitor.cc \
     29                      monitor/network_monitor.cc \
     30                      monitor/network_node.cc \
     31                      \
    3032                      synchronizeable_var/synchronizeable_var.cc \
    3133                      synchronizeable_var/synchronizeable_vector.cc \
     
    4446                 shared_network_data.h \
    4547                 network_socket.h \
    46                  monitor/connection_monitor.h \
    47                  monitor/network_monitor.h \
    4848                 network_stream.h \
    4949                 data_stream.h \
     
    6565                 udp_broadcast.h \
    6666                 \
     67                 monitor/connection_monitor.h \
     68                 monitor/network_monitor.h \
     69                 monitor/network_node.h \
     70                 \
    6771                 synchronizeable_var/synchronizeable_var.h \
    6872                 synchronizeable_var/synchronizeable_vector.h \
  • branches/proxy/src/lib/network/monitor/network_monitor.cc

    r9275 r9276  
    2020
    2121#include "network_monitor.h"
     22#include "network_node.h"
     23
    2224
    2325SHELL_COMMAND(showGUI, NetworkMonitor, showGUI);
  • branches/proxy/src/lib/network/monitor/network_monitor.h

    r9275 r9276  
    1414class NetworkStream;
    1515class PeerInfo;
     16class NetworkNode;
    1617
    1718namespace OrxGui { class GLGuiBox; };
    1819
    19 //!< a class representing a node in the network (this can be a MASTER_SERVER, PROXY_SERVER or a CLIENT
    20 class NetworkNode
    21 {
    22   public:
    23     NetworkNode() {}
    24     ~NetworkNode() {}
    2520
    26 
    27   private:
    28     int                          nodeType;                     //!< the type of the node
    29 
    30     std::list<PeerInfo*>         clientList;                   //!< list of all clients in the network
    31     std::list<PeerInfo*>         proxyServerList;              //!< list of all proxy servers in the network
    32     std::list<PeerInfo*>         masterServerList;             //!< list of all master servers in the network (should be 1!! :D)
    33 
    34 };
    3521
    3622//!< a class that monitors the whole network. it tries to gather all informations its able to from the network
Note: See TracChangeset for help on using the changeset viewer.