Changeset 5822 in orxonox.OLD for trunk/src/lib/network
- Timestamp:
- Nov 29, 2005, 2:22:37 PM (19 years ago)
- Location:
- trunk/src/lib/network
- Files:
-
- 2 deleted
- 18 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/Makefile.in
r5821 r5822 1 # Makefile.in generated by automake 1.9. 5from Makefile.am.1 # Makefile.in generated by automake 1.9.6 from Makefile.am. 2 2 # @configure_input@ 3 3 … … 15 15 @SET_MAKE@ 16 16 17 18 SOURCES = $(libORXnet_a_SOURCES)19 17 20 18 srcdir = @srcdir@ -
trunk/src/lib/network/network_manager.cc
r5821 r5822 22 22 23 23 #include "network_stream.h" 24 #include "list.h"25 24 #include "class_list.h" 26 25 … … 162 161 if (this->netStreamList != NULL || (this->netStreamList = ClassList::getList(CL_NETWORK_STREAM)) != NULL) 163 162 { 164 tIterator<BaseObject>* iterator = this->netStreamList->getIterator(); 165 NetworkStream* stream = (NetworkStream*)(iterator->firstElement()); 166 while( stream) 167 { 168 stream->processData(); 169 stream = (NetworkStream*)(iterator->nextElement()); 170 } 171 delete iterator; 163 std::list<BaseObject*>::iterator stream; 164 for (stream = this->netStreamList->begin(); stream != this->netStreamList->end(); ++stream) 165 static_cast<NetworkStream*>(*stream)->processData(); 172 166 } 173 167 174 168 } 175 176 -
trunk/src/lib/network/network_manager.h
r5821 r5822 41 41 42 42 private: 43 tList<BaseObject>* netStreamList; // list with refs to all network streams44 tList<BaseObject>*syncList; // list of synchronizeables43 std::list<BaseObject*>* netStreamList; // list with refs to all network streams 44 std::list<BaseObject*>* syncList; // list of synchronizeables 45 45 46 46 }; -
trunk/src/lib/network/network_socket.h
r5821 r5822 23 23 24 24 #ifdef HAVE_SDL_H 25 #include <SDL_Thread.h>25 #include <SDL_thread.h> 26 26 #else 27 #include <SDL/SDL_thread.h>27 #include <SDL/SDL_thread.h> 28 28 #endif 29 29 /* include this file, it contains some default definitions */
Note: See TracChangeset
for help on using the changeset viewer.