Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/lib/network/shared_network_data.cc @ 9396

Last change on this file since 9396 was 9396, checked in by patrick, 18 years ago

committing my weekends work: 2100 lines :D

  • proxy server now accepts and synchronizes clients like a master server
  • network manager got different network setup interface
  • network stream got different constructure scheme
  • permissions checking and algorithm extended and changed
  • starting ability to connect to multiple network nodes at the same time
  • some very much smaller changes here and there
File size: 1.1 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11### File Specific:
12   main-programmer: Patrick Boenzli
13*/
14
15
16#define DEBUG_MODULE_NETWORK
17
18#include "shared_network_data.h"
19#include "netdefs.h"
20#include "state.h"
21
22#include "debug.h"
23
24
25
26SharedNetworkData* SharedNetworkData::singletonRef = NULL;
27
28/**
29 * Standard constructor
30 */
31SharedNetworkData::SharedNetworkData()
32{
33  /* set the class id for the base object */
34  this->setClassID(CL_SHARED_NETWORK_DATA, "SharedNetworkData");
35
36  this->nodeType = NET_CLIENT;
37  this->hostID = -1;
38  this->defaultSyncStream = NULL;
39
40  // setUniqueID( maxCon+2 ) because we need one id for every handshake
41  // and one for handshake to reject client maxCon+1
42  this->newUniqueID = NetworkSettings::getInstance()->getMaxPlayer() + 2;
43}
44
45
46/**
47 * Standard destructor
48 */
49SharedNetworkData::~SharedNetworkData()
50{
51  SharedNetworkData::singletonRef = NULL;
52}
Note: See TracBrowser for help on using the repository browser.