Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5612 was 5575, checked in by patrick, 19 years ago

network: now working with classlist

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