Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9264 in orxonox.OLD for branches/proxy


Ignore:
Timestamp:
Jul 13, 2006, 10:24:09 AM (18 years ago)
Author:
patrick
Message:

network monitor skeleton

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

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/network_monitor.cc

    r9263 r9264  
    3232
    3333}
     34
     35
     36/**
     37 * deconstructor
     38 */
     39NetworkMonitor::~NetworkMonitor()
     40{}
    3441
    3542
  • branches/proxy/src/lib/network/network_monitor.h

    r9263 r9264  
    11/*!
    2  * @file network_stream.h
    3  *  implementation of a network pipe
     2 * @file network_monitor.h
     3 *  a class to monitor the network: throughput, network nodes
    44 */
    55
     
    1010#include "synchronizeable.h"
    1111
     12#include <list>
     13
    1214class NetworkStream;
     15class PeerInfo;
     16
    1317
    1418class NetworkMonitor : public Synchronizeable
     
    1721  public:
    1822    NetworkMonitor(NetworkStream* networkStream);
     23    virtual ~NetworkMonitor();
     24
     25
     26    void addClient(PeerInfo* node);
     27    void addProxyServer(PeerInfo* node);
     28    void addMasterServer(PeerInfor* node);
     29
     30    void removeClient(PeerInfor* node);
     31    void removeProxyServer(PeerInfor* node);
     32    void removeMasterServer(PeerInfor* node);
     33
     34
     35    void process();
     36
     37
     38  private:
     39    std::list<PeerInfo*>         clientList;                   //!< list of all clients in the network
     40    std::list<PeerInfo*>         proxyServerList;              //!< list of all proxy servers in the network
     41    std::list<PeerInfo*>         masterServerList;             //!< list of all master servers in the network (should be 1!! :D)
    1942};
    2043
Note: See TracChangeset for help on using the changeset viewer.