hal|Sascha wrote:Easy question, whats the limit for sending tunneldata?
really limited, but in last dedicated version it should have been increased between master and relay (but i did not test on 2008-07-22 at the moment)
edit: something that I'm really missing is a server method like that:
Result: Returns the server login for the relay server on a gameserver or the server login for the gameserver on a relay server
that could be nice, but not the second part.
Actually you can get all servers using GetPlayerList,250,0,2 and look for servers, which have Flags = IsServer * 100000. You know that the current server is GetSystemInfo[ServerLogin], so others are master or relays. If IsRelayServer is false then the current is master and others are relays. Else there should be only one in that list : the master. You can do that at beginning, and after just look for the Flag of new "players" to add new relays in your list.
Things become complicated if the current server is a relay and have sub-relays (so is an intermedite relay), because you don't know which in the list are sub-relays and which one is the master.... btw if you receive a PlayerChat from another server, you are sure that it's the master
So some functionality that allows servertools to get the relationship between to servers (gameserver and relayserver). Could be also a optional result @ servermethod IsRelay() (results are: true/false, loginfromotherserver)
I agree that it would be more simple if IsRelayServer was returning the master login, in such case all except known master and current would be sub-relays