Changeset 5525 in orxonox.OLD for branches/network
- Timestamp:
- Nov 9, 2005, 5:17:27 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_manager.cc
r5522 r5525 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_NETWORK17 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 */ 18 24 #include "network_manager.h" 19 25 26 /* using namespace std is default, this needs to be here */ 20 27 using namespace std; 21 28 22 29 30 /************************************ 31 What you will see here are the function definitions from the header file (network_manager.h) with doxygen documentation. Here is an example: 32 33 34 In file network_manager.h 23 35 36 class NetworkManager 37 { 38 int doSomeStuff(float argument, float* pointer); 39 } 24 40 41 will be implemented in the source file as follows: 42 43 In file network_manager.cc 44 45 / ** 46 * this is the short description for this function: it just does some stuff 47 * @param argument: this is the first argument, stuff... 48 * @param pointer: this is the pointer to nowhereland 49 * return: whatever the function returns: for example an index, number, etc. 50 * / 51 int NetworkManager::doSomeStuff(float argument, float* pointer) 52 { 53 // whaterver you want to do 54 } 55 56 57 if you want to make automake compile your files: you will want to add the file names to the local Makefile.am 58 59 ************************************/ 60 61 62 63 25 64 /** 26 65 * standard constructor … … 56 95 * @param synchronizeable: reference to the sync object 57 96 */ 58 void NetworkManager::establishConnection( )97 void NetworkManager::establishConnection(/* address, port, object reference*/) 59 98 {} 60 99 … … 71 110 * @param listener: the reference to the listener to be added 72 111 */ 73 void NetworkManager::registerListener( )112 void NetworkManager::registerListener(/* listener reference*/) 74 113 {} 75 114 -
branches/network/src/lib/network/network_manager.h
r5522 r5525 21 21 22 22 void initialize(); 23 void s thudown();24 void establishConnection( );23 void shutdown(); 24 void establishConnection(/* address, port, object reference*/); 25 25 void shutdownConnection(); 26 26
Note: See TracChangeset
for help on using the changeset viewer.