Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/network/network_manager.cc @ 5548

Last change on this file since 5548 was 5530, checked in by patrick, 19 years ago

network: added the definition file for byte and more to come

File size: 2.7 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Patrick Boenzli
13   co-programmer: ...
14*/
15
16
17/* this is for debug output. It just says, that all calls to PRINT() belong to the DEBUG_MODULE_NETWORK module
18   For more information refere to https://www.orxonox.net/cgi-bin/trac.cgi/wiki/DebugOutput
19*/
20#define DEBUG_MODULE_NETWORK
21
22
23/* include your own header */
24#include "network_manager.h"
25
26/* include this file, it contains some default definitions */
27#include "netdefs.h"
28
29/* using namespace std is default, this needs to be here */
30using namespace std;
31
32
33/************************************
34  What you will see here are the function definitions from the header file (network_manager.h) with doxygen documentation. Here is an example:
35
36
37 In file network_manager.h
38
39 class NetworkManager
40 {
41   int doSomeStuff(float argument, float* pointer);
42 }
43
44 will be implemented in the source file as follows:
45
46 In file network_manager.cc
47
48 / **
49  *  this is the short description for this function: it just does some stuff
50  * @param argument: this is the first argument, stuff...
51  * @param pointer:  this is the pointer to nowhereland
52  * return: whatever the function returns: for example an index, number, etc.
53  * /
54 int NetworkManager::doSomeStuff(float argument, float* pointer)
55 {
56   // whaterver you want to do
57 }
58
59
60 if you want to make automake compile your files: you will want to add the file names to the local Makefile.am
61
62 ************************************/
63
64
65
66
67/**
68 *  standard constructor
69 */
70NetworkManager::NetworkManager()
71{}
72
73
74/**
75 *  standard deconstructor
76 */
77NetworkManager::~NetworkManager()
78{}
79
80
81/**
82 *  initializes the network manager
83 */
84void NetworkManager::initialize()
85{}
86
87
88/**
89 *  shutsdown the network manager
90 */
91void NetworkManager::shutdown()
92{}
93
94
95/**
96 *  creates a connection from one object to a host
97 * @param address: the address of the destination host
98 * @param synchronizeable: reference to the sync object
99 */
100void NetworkManager::establishConnection(/* address, port, object reference*/)
101{}
102
103
104/**
105 *  teardown a connection
106 */
107void NetworkManager::shutdownConnection()
108{}
109
110
111/**
112 *  registers a listener at the network manager
113 * @param listener: the reference to the listener to be added
114 */
115void NetworkManager::registerListener(/* listener reference*/)
116{}
117
118/**
119 *  sync the network
120 */
121void NetworkManager::synchronize()
122{}
123
124
Note: See TracBrowser for help on using the repository browser.