Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 21, 2010, 9:27:36 PM (14 years ago)
Author:
scheusso
Message:

changing landiscoverable port to fix problem when running masterserver and normal server on the same host

Location:
code/branches/presentation2/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/network/LANDiscoverable.cc

    r7459 r7790  
    4545    this->host_ = 0;
    4646    this->bActive_ = false;
    47     this->setActivity(true);
     47//     this->setActivity(true);
    4848  }
    4949
  • code/branches/presentation2/src/libraries/network/MasterServer.cc

    r7765 r7790  
    280280     * any input/output bandwidth */
    281281    this->server = enet_host_create( &this->address, ORX_MSERVER_MAXCONNS,
    282         ORX_MSERVER_MAXCHANS, 0, 0 );     
     282        ORX_MSERVER_MAXCHANS, 0, 0 );
     283    assert(this->server);
    283284
    284285    /* see if creation worked */
  • code/branches/presentation2/src/libraries/network/NetworkPrereqs.h

    r7788 r7790  
    6868  extern const char* LAN_DISCOVERY_MESSAGE;
    6969  extern const char* LAN_DISCOVERY_ACK;
    70   static const unsigned int LAN_DISCOVERY_PORT          = 55557;
     70  static const unsigned int LAN_DISCOVERY_PORT          = 55558;
    7171  static const unsigned int NETWORK_PEER_ID_SERVER      = 0;
    7272  static const unsigned int NETWORK_CHANNEL_DEFAULT     = 0;
  • code/branches/presentation2/src/orxonox/gamestates/GSServer.cc

    r7401 r7790  
    3434#include "core/GameMode.h"
    3535#include "network/Server.h"
     36#include "network/Connection.h"
    3637
    3738namespace orxonox
     
    3940    DeclareGameState(GSServer, "server", false, false);
    4041
    41     SetCommandLineArgument(port, 55556).shortcut("p").information("Network communication port to be used 0-65535 (default: 55556)");
     42    SetCommandLineArgument(port, NETWORK_PORT).shortcut("p").information("Network communication port to be used 0-65535 (default: 55556)");
    4243
    4344    GSServer::GSServer(const GameStateInfo& info)
Note: See TracChangeset for help on using the changeset viewer.