| Line | |
|---|
| 1 | /*! |
|---|
| 2 | * @file peer_info.h |
|---|
| 3 | * implementation a peer info |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | #ifndef _PEER_INFO_H |
|---|
| 7 | #define _PEER_INFO_H |
|---|
| 8 | |
|---|
| 9 | #include "server_socket.h" |
|---|
| 10 | #include "handshake.h" |
|---|
| 11 | #include "connection_monitor.h" |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | //!< this structure contains informations about the network node |
|---|
| 15 | class PeerInfo |
|---|
| 16 | { |
|---|
| 17 | public: |
|---|
| 18 | PeerInfo(); |
|---|
| 19 | |
|---|
| 20 | void clear(); |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | public: |
|---|
| 24 | int userId; |
|---|
| 25 | int nodeType; |
|---|
| 26 | bool isMasterServer; |
|---|
| 27 | bool isProxyServer; |
|---|
| 28 | bool isClient; |
|---|
| 29 | NetworkSocket * socket; |
|---|
| 30 | Handshake * handshake; |
|---|
| 31 | ConnectionMonitor * connectionMonitor; |
|---|
| 32 | int lastAckedState; |
|---|
| 33 | int lastRecvedState; |
|---|
| 34 | }; |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | #endif /* _PEER_INFO_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.