config-hubmaster.php

Go to the documentation of this file.
00001 <?php
00024 // Get the configuration instance
00025 $cfg = FrameworkConfiguration::getInstance();
00026 
00027 // CFG: HUB-LISTEN-ADDR
00028 $cfg->setConfigEntry('hub_listen_addr', "0.0.0.0");
00029 
00030 // CFG: HUB-LISTEN-PORT (zero = auto-choose)
00031 $cfg->setConfigEntry('hub_listen_port', 9060);
00032 
00033 // CFG: HUB-MAX-AUTH-TRIES
00034 $cfg->setConfigEntry('hub_max_auth_tries', 3);
00035 
00036 // CFG: HUB-MSG-AUTH-TRIES
00037 $cfg->setConfigEntry('hub_msg_auth_tries', "AUTH_MAX_TRIES");
00038 
00039 // CFG: HUB-MSG-SPOOFING
00040 $cfg->setConfigEntry('hub_msg_spoofing', "SPOOFING");
00041 
00042 // CFG: HUB-MSG-AUTH-REPLY
00043 $cfg->setConfigEntry('hub_msg_auth_reply_timeout', "TIMEOUT_AUTH");
00044 
00045 // CFG: HUB-MSG-BYE
00046 $cfg->setConfigEntry('hub_msg_bye', "BYE");
00047 
00048 // CFG: HUB-MASTER-IP
00049 $cfg->setConfigEntry('hub_master_ip', "192.168.1.17");
00050 
00051 // CFG: HUB-MASTER-PORT
00052 $cfg->setConfigEntry('hub_master_port', 9060);
00053 
00054 // CFG: HUB-AUTH-REQUEST
00055 $cfg->setConfigEntry('hub_auth_request', "AUTH");
00056 
00057 // CFG: HUB-AUTH-REQUEST-TIMEOUT (5 seconds for whole auth procedure shall be fine)
00058 $cfg->setConfigEntry('hub_auth_request_timeout', 5);
00059 
00060 // CFG: HUB-PEER-HELLO
00061 $cfg->setConfigEntry('hub_peer_hello', "HELLO");
00062 
00063 // CFG: HUB-HELLO-REPLY
00064 $cfg->setConfigEntry('hub_hello_reply', "ELHO");
00065 
00066 // CFG: HUB-HELLO-TIMEOUT
00067 $cfg->setConfigEntry('hub_hello_timeout', 30);
00068 
00069 // CFG: HUB-HELLO-RETRIES
00070 $cfg->setConfigEntry('hub_hello_retires', 3);
00071 
00072 // CFG: HUB-PEER-PING
00073 $cfg->setConfigEntry('hub_peer_ping', "PING");
00074 
00075 // CFG: HUB-PING-REPLY
00076 $cfg->setConfigEntry('hub_ping_reply', "PONG");
00077 
00078 // CFG: HUB-PING-TIMEOUT
00079 $cfg->setConfigEntry('hub_ping_timeout', 10);
00080 
00081 // CFG: HUB-PING-MAXDROPS
00082 $cfg->setConfigEntry('hub_ping_maxdrops', 3);
00083 
00084 // CFG: HUB-PEER-MISS-PONG
00085 $cfg->setConfigEntry('hub_peer_miss_pong', "PONG_MISS");
00086 
00087 // [EOF]
00088 ?>

Generated on Mon Dec 8 01:06:46 2008 for Ship-Simulator by  doxygen 1.5.6