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