Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/network/network_stream.h @ 5647

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

network: modiefied the unit test to enable diffrent modes, extended the NetworkStream constructors interface and NetworkManager interface

File size: 869 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
11class Synchronizeable;
12class NetworkSocket;
13class ConnectionMonitor;
14
15class NetworkStream : public virtual DataStream
16{
17
18public:
19  NetworkStream();
20  NetworkStream(DataStream& inStream, DataStream& outStream);
21  NetworkStream(Synchronizeable& sync, NetworkSocket& socket);
22  NetworkStream(DataStream& inStream, NetworkSocket& socket);
23  NetworkStream(Synchronizeable& sync, DataStream& outStream);
24 
25  ~NetworkStream();
26   
27  void init();
28 
29  virtual void processData();
30
31private:
32  //NetworkProtocol* networkProtocol;
33  NetworkSocket*          networkSockets;
34  ConnectionMonitor*      connectionMonitor;
35 // tList<Synchronizeable>* synchronizeables;
36  Synchronizeable*          synchronizeables;
37};
38#endif /* _NETWORK_STREAM */
39
Note: See TracBrowser for help on using the repository browser.