Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

network: testing env. got segfault in the code

File size: 921 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;
14class NetworkProtocol;
15
16class NetworkStream : public DataStream
17{
18
19public:
20  NetworkStream();
21  NetworkStream(IPaddress& address, Synchronizeable& sync, NodeType type);
22  NetworkStream(Synchronizeable& sync, 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
31private:
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.