Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/lib/network/network_monitor.h @ 9265

Last change on this file since 9265 was 9265, checked in by patrick, 18 years ago

network monitor gui

File size: 1.1 KB
Line 
1/*!
2 * @file network_monitor.h
3 *  a class to monitor the network: throughput, network nodes
4 */
5
6#ifndef _NETWORK_MONITOR_H
7#define _NETWORK_MONITOR_H
8
9#include "base_object.h"
10#include "synchronizeable.h"
11
12#include <list>
13
14class NetworkStream;
15class PeerInfo;
16
17class OrxGui::GLGuiBox;
18
19class NetworkMonitor : public Synchronizeable
20{
21
22  public:
23    NetworkMonitor(NetworkStream* networkStream);
24    virtual ~NetworkMonitor();
25
26
27    void addClient(PeerInfo* node);
28    void addProxyServer(PeerInfo* node);
29    void addMasterServer(PeerInfo* node);
30
31    void removeClient(PeerInfo* node);
32    void removeProxyServer(PeerInfo* node);
33    void removeMasterServer(PeerInfo* node);
34
35    void showGUI();
36
37    void process();
38
39
40  private:
41    std::list<PeerInfo*>         clientList;                   //!< list of all clients in the network
42    std::list<PeerInfo*>         proxyServerList;              //!< list of all proxy servers in the network
43    std::list<PeerInfo*>         masterServerList;             //!< list of all master servers in the network (should be 1!! :D)
44
45    OrxGui::GLGuiBox*            box;
46};
47
48
49#endif
Note: See TracBrowser for help on using the repository browser.