Getting the ping (speed) of servers returned by PollHostList

Hi,

When I use MasterServer.PollHostList(); then I
can see the servers available, but does anyone know how I could easily see also what the PING value is to those servers available? Thats a pretty important value to decide to which server you’re gonna connect.

I implemented ping classes in the attached package, one for Mac and one for Windows. The Mac implementation works fine, both for webplayers and standalones. In Windows the code will only work on standalones (Windows required a seperate implementation).

I’ll look into getting the Windows code working in the Windows webplayers also.

51842–1896–$pingtest_362.unitypackage (7.12 KB)

Great thanks,

Of course I can only use it when it works on both Win and Mac.

No hard feelings, but I changed to a mac to be able to use unity, but 95% of players on my website will be windows users :frowning:

So hopefully you can find something to solve this and if not then I hope that the functionality can be included in the webplayer by default since its a question which will be asked a huge amount of times when other people are going to make multiplayer webgames.

Kind regards,

Bart

Is there anything changed yet? Can the ping allready be found on windows webplayers too now ?

Kind regards,

Bart Libert
EducaSoft BVBA

Not yet, sorry. I have something which kinda works but isn’t good enough.

I’m working on polishing the networking example project, which will be ready very very soon. After that I can look at this again.

Here I am again asking how stuff is progressing

Larus dear Larus,

How is the PING function going ?

It will be inbuilt in version 2.0.2.

You are a GOD !

Thanks!