Game Development Community

Master Server protocol questions....

by Matthew Shapiro · in Torque Game Engine · 07/27/2002 (7:15 pm) · 3 replies

Ok, I've been looking through the master server protocol and I'm finally starting to get it. I'm ALMOST ready to start programming hte master server, however I have some questions.

1) out->write( ( gMasterServerPing.session << 16 ) | ( gMasterServerPing.key & 0xFFFF ) ); This is confusing me (not the out->write() but the rest). I can't really understand what it is doing as why would the master server need it's ping in the server request?

2) out->write( U8( 255 ) ); why do you need bit 255 in the packet? It's followed by the strings for the ruleset and missiontype, which leads me to think that 255 is the length of the strings but even so this is odd since it's basically a constant number, and the master server could use this number on it's own. Just seems odd to me....

3) writeCstring(). Where is this function declared? I see it used but i can't find it.

4) in netDispatch.h in the enum PacketType, What is the GameMasterInfoRequest and GameMasterInfoResponse for and what's the difference between those and GameInfoRequest and GameInfoResponse packets? are those for the master server to keep updating info, or does the master server really keep up with the info, as it seems to me that the master server keeps basic information of the server and lets the clients get the main info themselves.

5) Where is the code that basically tells the master server, Hey I've just created a server and here is my information? All Ihave been able to find so far is how to query for the master server list. Also where is the heartbeat code located?

Thanks in advance

--KallDrexx

#1
07/27/2002 (7:39 pm)
You must look deeper, KallDrexx! Use the 'find' capabilities of your OS to it's maximum extent! :-D
#2
04/16/2003 (3:22 pm)
Everything you are looking for is in serverQuery.cc

Btw, I've got a master server implementation actually working. I've gotten quite familiar with the various packet types and structures thereof used in dealing with the master server.

Got any questions, shoot an email off to bross_46@hotmail.com
#3
04/16/2003 (3:24 pm)
Bryan,

This thread is nearly a year old...