Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5822 in orxonox.OLD for trunk/src/lib/network


Ignore:
Timestamp:
Nov 29, 2005, 2:22:37 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged branches/network to the trunk
merged with command:
svn merge -r 5505:HEAD branches/network trunk

conflicts resolved in favor of the trunk (as always :))
also fixed a typo in the #include "SDL_tread.h"

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.5 from Makefile.am.
     1# Makefile.in generated by automake 1.9.6 from Makefile.am.
    22# @configure_input@
    33
     
    1515@SET_MAKE@
    1616
    17 
    18 SOURCES = $(libORXnet_a_SOURCES)
    1917
    2018srcdir = @srcdir@
  • trunk/src/lib/network/network_manager.cc

    r5821 r5822  
    2222
    2323#include "network_stream.h"
    24 #include "list.h"
    2524#include "class_list.h"
    2625
     
    162161  if (this->netStreamList != NULL || (this->netStreamList = ClassList::getList(CL_NETWORK_STREAM)) != NULL)
    163162  {
    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();
    172166  }
    173167
    174168}
    175 
    176 
  • trunk/src/lib/network/network_manager.h

    r5821 r5822  
    4141
    4242private:
    43   tList<BaseObject>*    netStreamList;            // list with refs to all network streams
    44   tList<BaseObject>*  syncList;                 // list of synchronizeables
     43  std::list<BaseObject*>*    netStreamList;            // list with refs to all network streams
     44  std::list<BaseObject*>*    syncList;                 // list of synchronizeables
    4545
    4646};
  • trunk/src/lib/network/network_socket.h

    r5821 r5822  
    2323
    2424#ifdef HAVE_SDL_H
    25 #include <SDL_Thread.h>
     25 #include <SDL_thread.h>
    2626#else
    27 #include <SDL/SDL_thread.h>
     27 #include <SDL/SDL_thread.h>
    2828#endif
    2929/* include this file, it contains some default definitions */
Note: See TracChangeset for help on using the changeset viewer.