mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
change default NodeList port to 0 for ephemeral
This commit is contained in:
parent
77dcebd51f
commit
2846d170f7
2 changed files with 1 additions and 3 deletions
|
@ -38,7 +38,6 @@ int main(int argc, const char* argv[]) {
|
||||||
// construct the requested assignment from the packet data
|
// construct the requested assignment from the packet data
|
||||||
Assignment requestAssignment(senderData, receivedBytes);
|
Assignment requestAssignment(senderData, receivedBytes);
|
||||||
|
|
||||||
|
|
||||||
// grab the first assignment in the queue, if it exists
|
// grab the first assignment in the queue, if it exists
|
||||||
if (assignmentQueue.size() > 0) {
|
if (assignmentQueue.size() > 0) {
|
||||||
Assignment firstAssignment = assignmentQueue.front();
|
Assignment firstAssignment = assignmentQueue.front();
|
||||||
|
|
|
@ -28,7 +28,6 @@ const int MAX_NUM_NODES = 10000;
|
||||||
const int NODES_PER_BUCKET = 100;
|
const int NODES_PER_BUCKET = 100;
|
||||||
|
|
||||||
const int MAX_PACKET_SIZE = 1500;
|
const int MAX_PACKET_SIZE = 1500;
|
||||||
const unsigned short int NODE_SOCKET_LISTEN_PORT = 40103;
|
|
||||||
|
|
||||||
const int NODE_SILENCE_THRESHOLD_USECS = 2 * 1000000;
|
const int NODE_SILENCE_THRESHOLD_USECS = 2 * 1000000;
|
||||||
const int DOMAIN_SERVER_CHECK_IN_USECS = 1 * 1000000;
|
const int DOMAIN_SERVER_CHECK_IN_USECS = 1 * 1000000;
|
||||||
|
@ -56,7 +55,7 @@ public:
|
||||||
|
|
||||||
class NodeList {
|
class NodeList {
|
||||||
public:
|
public:
|
||||||
static NodeList* createInstance(char ownerType, unsigned short int socketListenPort = NODE_SOCKET_LISTEN_PORT);
|
static NodeList* createInstance(char ownerType, unsigned short int socketListenPort = 0);
|
||||||
static NodeList* getInstance();
|
static NodeList* getInstance();
|
||||||
|
|
||||||
typedef NodeListIterator iterator;
|
typedef NodeListIterator iterator;
|
||||||
|
|
Loading…
Reference in a new issue