Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/network/network_manager.h @ 5613

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

network: now working with classlist

File size: 1.1 KB
Line 
1/*!
2 * @file network_manager.h
3  *  Main interface for the network module. Manages all the modules
4*/
5
6/* you will want to add such a a line at your header file also, since it will
7   prevent c++ from including your code twice*/
8#ifndef _NETWORK_MANGER
9#define _NETWORK_MANAGER
10
11
12/* include base_object.h since all classes are derived from this one */
13#include "base_object.h"
14
15/* forward declarations for the header file (include the header via #include "bla.h" in the source file) */
16class NetworkStream;
17class Synchronizeable;
18template<typename> class tList;
19
20/* and here is the class itsself*/
21class NetworkManager : public BaseObject
22{
23
24public:
25
26  NetworkManager();
27  ~NetworkManager();
28
29  void initialize();
30  void shutdown();
31 
32  NetworkStream& establishConnection(/* address, port, object reference*/);
33  void shutdownConnection();
34 
35  void synchronize();
36
37private:
38  tList<BaseObject>*    netStreamList;            // list with refs to all network streams
39  tList<BaseObject>*  syncList;                 // list of synchronizeables
40   
41};
42
43
44
45#endif /* _NETWORK_MANAGER */
Note: See TracBrowser for help on using the repository browser.