Changeset 5572 in orxonox.OLD for branches/network/src
- Timestamp:
- Nov 15, 2005, 7:17:20 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
r5566 r5572 23 23 #include "network_stream.h" 24 24 #include "list.h" 25 #include "class_list.h" 25 26 26 27 … … 72 73 NetworkManager::NetworkManager() 73 74 { 74 this->netStreamList = new tList<NetworkStream>(); 75 NetworkStream* ns = new NetworkStream(); 75 /* set the class id for the base object */ 76 //this->setClassID(CL_NETWORK_MANAGER, "NetworkManager"); 77 /* initialize the references */ 78 this->netStreamList = NULL; 79 this->syncList = NULL; 76 80 } 77 81 … … 88 92 */ 89 93 void NetworkManager::initialize() 90 {} 94 { 95 /* get the synchronizeable list from the class list */ 96 //this->netStreamList = ClassList::getClassList(/*CL_SYNCHRONIZEABLE*/0x0); 97 } 91 98 92 99 … … 103 110 * @param synchronizeable: reference to the sync object 104 111 */ 105 void NetworkManager::establishConnection(/* address, port, object reference*/) 106 {} 112 NetworkStream& NetworkManager::establishConnection(/* address, port, object reference*/) 113 { 114 /* creating a new network stream */ 115 NetworkStream* netStream = new NetworkStream(); 116 } 107 117 108 118 … … 114 124 115 125 116 /**117 * registers a listener at the network manager118 * @param listener: the reference to the listener to be added119 */120 void NetworkManager::registerListener(/* listener reference*/)121 {}122 126 123 127 /** -
branches/network/src/lib/network/network_manager.h
r5566 r5572 13 13 #include "base_object.h" 14 14 15 /* this are class predefinitions. the includes are in the source file*/15 /* forward declarations for the header file (include the header via #include "bla.h" in the source file) */ 16 16 class NetworkStream; 17 class Synchronizeable; 17 18 template<typename> class tList; 18 19 … … 28 29 void initialize(); 29 30 void shutdown(); 30 void establishConnection(/* address, port, object reference*/); 31 32 NetworkStream& establishConnection(/* address, port, object reference*/); 31 33 void shutdownConnection(); 32 33 void registerListener(); 34 34 35 void synchronize(); 35 36 36 37 private: 37 38 tList<NetworkStream>* netStreamList; // list with refs to all network streams 39 tList<Synchronizeable>* syncList; // list of synchronizeables 38 40 39 41 };
Note: See TracChangeset
for help on using the changeset viewer.