Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5605 in orxonox.OLD for branches


Ignore:
Timestamp:
Nov 16, 2005, 3:24:07 PM (19 years ago)
Author:
patrick
Message:

network: added debug informations to the network manager, watch it :D

Location:
branches/network/src/lib/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/netdefs.h

    r5588 r5605  
    1111
    1212
     13
    1314#ifdef HAVE_SDL_NET_H
    14 #include <SDL_net.h>
     15  #include <SDL_net.h>
    1516#else
    16 #include <SDL/SDL_net.h>
     17  #include <SDL/SDL_net.h>
    1718#endif
     19
    1820
    1921typedef unsigned char byte;
  • branches/network/src/lib/network/network_manager.cc

    r5578 r5605  
    2424#include "list.h"
    2525#include "class_list.h"
     26
     27#include "debug.h"
    2628
    2729
     
    6870
    6971
     72
    7073/**
    7174 *  standard constructor
     
    7982  this->netStreamList = NULL;
    8083  this->syncList = NULL;
     84 
     85  PRINTF(0)("NetworkManager created\n");
    8186}
    8287
     
    96101  /* get the synchronizeable list from the class list */
    97102  this->netStreamList = ClassList::getList(CL_SYNCHRONIZEABLE);
     103  PRINTF(0)("NetworkManager initzalized\n");
    98104}
    99105
     
    115121NetworkStream& NetworkManager::establishConnection(/* address, port, object reference*/)
    116122{
     123  PRINTF(0)("Creating network socket\n");
    117124  /* creating a new network stream, it will register itself automaticaly to the class list */
    118125  NetworkStream* netStream = new NetworkStream();
     
    124131 */
    125132void NetworkManager::shutdownConnection()
    126 {}
     133{
     134  PRINTF(0)("Shutdown connection\n");
     135}
    127136
    128137
     
    133142void NetworkManager::synchronize()
    134143{
     144  PRINTF(0)("NetworkManager synchronizes\n");
    135145  if (this->netStreamList != NULL || (this->netStreamList = ClassList::getList(CL_NETWORK_STREAM)) != NULL)
    136146  {
  • branches/network/src/lib/network/network_socket.cc

    r5592 r5605  
    1313   co-programmer:
    1414*/
     15
    1516
    1617
Note: See TracChangeset for help on using the changeset viewer.