Last change
on this file since 9276 was
9276,
checked in by patrick, 18 years ago
|
added new structure network node
|
File size:
923 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file network_node.h |
---|
3 | * a class representing a node in the network (this can be a MASTER_SERVER, PROXY_SERVER or a CLIENT |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _NETWORK_NODE_H |
---|
7 | #define _NETWORK_NODE_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | #include "synchronizeable.h" |
---|
11 | |
---|
12 | #include <list> |
---|
13 | |
---|
14 | class PeerInfo; |
---|
15 | |
---|
16 | //!< a class representing a node in the network (this can be a MASTER_SERVER, PROXY_SERVER or a CLIENT |
---|
17 | class NetworkNode |
---|
18 | { |
---|
19 | public: |
---|
20 | NetworkNode(); |
---|
21 | ~NetworkNode(); |
---|
22 | |
---|
23 | |
---|
24 | private: |
---|
25 | int nodeType; //!< the type of the node |
---|
26 | |
---|
27 | std::list<PeerInfo*> clientList; //!< list of all clients in the network |
---|
28 | std::list<PeerInfo*> proxyServerList; //!< list of all proxy servers in the network |
---|
29 | std::list<PeerInfo*> masterServerList; //!< list of all master servers in the network (should be 1!! :D) |
---|
30 | |
---|
31 | }; |
---|
32 | |
---|
33 | #endif /* _NETWORK_NODE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.