source:
orxonox.OLD/branches/network/src/lib/network/network_stream.h
@
5804
Last change on this file since 5804 was 5804, checked in by patrick, 18 years ago | |
---|---|
File size: 930 bytes |
Rev | Line | |
---|---|---|
[5566] | 1 | /*! |
2 | * @file network_stream.h | |
3 | * implementation of a network pipe | |
4 | */ | |
[5587] | 5 | |
[5566] | 6 | #ifndef _NETWORK_STREAM |
7 | #define _NETWORK_STREAM | |
8 | ||
[5582] | 9 | #include "data_stream.h" |
[5566] | 10 | |
[5647] | 11 | class Synchronizeable; |
12 | class NetworkSocket; | |
13 | class ConnectionMonitor; | |
[5741] | 14 | class NetworkProtocol; |
[5589] | 15 | |
[5649] | 16 | class NetworkStream : public DataStream |
[5566] | 17 | { |
18 | ||
19 | public: | |
20 | NetworkStream(); | |
[5649] | 21 | NetworkStream(IPaddress& address, Synchronizeable& sync, NodeType type); |
[5804] | 22 | NetworkStream(Synchronizeable& sync, unsigned int port, NodeType type); |
23 | ||
[5566] | 24 | ~NetworkStream(); |
[5804] | 25 | |
[5647] | 26 | void init(); |
[5804] | 27 | |
[5798] | 28 | inline bool isServer() { return (this->type == NET_SERVER)? true:false; } |
[5647] | 29 | virtual void processData(); |
[5566] | 30 | |
[5583] | 31 | private: |
[5741] | 32 | NetworkProtocol* networkProtocol; |
[5804] | 33 | //NetworkSocket* networkSockets; |
[5741] | 34 | ConnectionMonitor* connectionMonitor; |
35 | // tList<Synchronizeable>* synchronizeables; | |
[5804] | 36 | Synchronizeable* synchronizeables; |
[5741] | 37 | NetworkSocket* networkSocket; |
[5798] | 38 | int type; |
[5587] | 39 | }; |
[5566] | 40 | #endif /* _NETWORK_STREAM */ |
41 |
Note: See TracBrowser
for help on using the repository browser.