Master/MasterServer/MasterClient mode
by XuZhiyang · in Torque Game Engine · 03/13/2006 (1:20 am) · 3 replies
Hi,
i have one TNL(Torque Network Library) question, can you help me?
in Master/MasterServer/MasterClient mode.
first, MasterServer and MasterClient connected to Master.
then, MasterClient connected to MasterServer.
all these is fine,but for a moment MasterServer and MasterClient both disconnected to Master!
(the disconnected reason is "TimeOut")
why?
thank you very mush.
(sorry, my english is poor)
witsun
2006.3.13
i have one TNL(Torque Network Library) question, can you help me?
in Master/MasterServer/MasterClient mode.
first, MasterServer and MasterClient connected to Master.
then, MasterClient connected to MasterServer.
all these is fine,but for a moment MasterServer and MasterClient both disconnected to Master!
(the disconnected reason is "TimeOut")
why?
thank you very mush.
(sorry, my english is poor)
witsun
2006.3.13
#2
MasterInterface : public TNL::EventConnection
{...}
MasterConnection : public MasterInterface
{...}
CGameConnection : public TNL::EventConnection
{...}
TNL::NetInterface* m_pNetInterface
MasterConnection* m_pMasterConnection
CGameConnection* pGameConnection
// use 30000 port
m_pNetInterface = new TNL::NetInterface(TNL::Address(TNL::IPProtocol, TNL::Address::Any, 30000));
// use any port
m_pNetInterface = new TNL::NetInterface(TNL::Address(TNL::IPProtocol, TNL::Address::Any, 0));
...
// connect to Master
m_pMasterConnection->connect(m_pNetInterface, masterAddress); // masterAddress maybe like this (IP:61.192.35.95:30000)
...
// will connect to MasterClient
// fullPossibleAddresses like TNL SDK's sample('master' and 'masterclient')
pGameConnection->connectArranged(getInterface(), fullPossibleAddresses,
nonce, serverNonce, theSharedData, false );
// use any port
m_pNetInterface = new TNL::NetInterface(TNL::Address(TNL::IPProtocol, TNL::Address::Any, 0));
...
// connect to Master
m_pMasterConnection->connect(m_pNetInterface, masterAddress); // masterAddress maybe like this (IP:61.192.35.95:30000)
...
// will connect to MasterServer
// fullPossibleAddresses like TNL SDK's sample('master' and 'masterclient')
pGameConnection->connectArranged(getInterface(), fullPossibleAddresses,
nonce, serverNonce, theSharedData, true );
to Philippe C:
Master run in WindowServer2003SP1 (Wide Area Network)
MasterServer and MasterClient run in WindowXPSP2 (local area network)
a firewall block the communication on the port used by network?my firewall is closed.
MasterClient and MasterServer both can connect to Master,
but when MasterClient connected to MasterServer. they both disconnect to Master.(is not like been block by firewall)
03/13/2006 (7:03 pm)
Hi,MasterInterface : public TNL::EventConnection
{...}
MasterConnection : public MasterInterface
{...}
CGameConnection : public TNL::EventConnection
{...}
TNL::NetInterface* m_pNetInterface
MasterConnection* m_pMasterConnection
CGameConnection* pGameConnection
// use 30000 port
m_pNetInterface = new TNL::NetInterface(TNL::Address(TNL::IPProtocol, TNL::Address::Any, 30000));
// use any port
m_pNetInterface = new TNL::NetInterface(TNL::Address(TNL::IPProtocol, TNL::Address::Any, 0));
...
// connect to Master
m_pMasterConnection->connect(m_pNetInterface, masterAddress); // masterAddress maybe like this (IP:61.192.35.95:30000)
...
// will connect to MasterClient
// fullPossibleAddresses like TNL SDK's sample('master' and 'masterclient')
pGameConnection->connectArranged(getInterface(), fullPossibleAddresses,
nonce, serverNonce, theSharedData, false );
// use any port
m_pNetInterface = new TNL::NetInterface(TNL::Address(TNL::IPProtocol, TNL::Address::Any, 0));
...
// connect to Master
m_pMasterConnection->connect(m_pNetInterface, masterAddress); // masterAddress maybe like this (IP:61.192.35.95:30000)
...
// will connect to MasterServer
// fullPossibleAddresses like TNL SDK's sample('master' and 'masterclient')
pGameConnection->connectArranged(getInterface(), fullPossibleAddresses,
nonce, serverNonce, theSharedData, true );
to Philippe C:
Master run in WindowServer2003SP1 (Wide Area Network)
MasterServer and MasterClient run in WindowXPSP2 (local area network)
a firewall block the communication on the port used by network?my firewall is closed.
MasterClient and MasterServer both can connect to Master,
but when MasterClient connected to MasterServer. they both disconnect to Master.(is not like been block by firewall)
#3
03/14/2006 (12:39 pm)
Sorry I am not competent , i can help you
Torque Owner Philippe C
could you put a copy of the console.log message ?
Generally speaking timeout occurs when a firewall block the communication on the port used by network.
I experiment that recently on linux ( my distro is installed by default with firewall option : block everything )