Posted By
|
Message
|
Metal-Geo
Registered 25/06/2003
Points 8
|
3rd September, 2005 at 19:23:13 -
Hi there.
As the title already quite says it. Is it possible to retrieve the Ping of your connection with MooSock? For those who don't know what I'm talking about; Ping is the slowdown between you and the internet. You send a command and you get a response to that. The time between the command and the response is the Ping. In other words, the higher the Ping, the slower your internet. All I want to know is if this is possible with MooSock? If so, I would be happy to know how.
Thanks in advance to everyone who tries to help!
Many routes lead to good software development. One of them is Clickteam.
|
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
|
3rd September, 2005 at 19:49:57 -
Woah, hold up. Ping is the time in milliseconds of a round trip for packets of data between two computers, not "slowdown between you and the internet". Also, ping does not dictate transfer speed, that's bandwidth. If you communicate with 2 servers, one of ping 100 with a 1mbps connection, and one of ping 1000 with a 10mbps connection, the 10mbps will be faster.
As for whether you can find it out in MooSock, I don't know.
www.thenatflap.co.uk
|
Metal-Geo
Registered 25/06/2003
Points 8
|
3rd September, 2005 at 19:54:38 -
Ugh. Sorry for the confusion. You're totaly right. I really got confused when I had to explain it. Heh... makes me wish English was my first language.
Many routes lead to good software development. One of them is Clickteam.
|
Silveraura God's God
Registered 08/08/2002
Points 6747
|
3rd September, 2005 at 20:03:43 -
I was kind of hoping how to find this out with MooClick, but 1 method you could try is send a message to the server, then start a counter that goes up 1 every milisecond, then once the server recieves it, the server can then send the message back to the player. Once the player recieves the message, just stop the counter & display the time. I dont really remember if ping is the time from your PC to the server, back to your PC, or from your PC to the server, & just stop there. If thats the case, you might be able to devide the time you get, in half, & use that as the ping. I havent tried it out yet, but it should work.
http://www.facebook.com/truediamondgame
|
Tigerworks Klik Legend
Registered 15/01/2002
Points 3882
|
3rd September, 2005 at 20:49:44 -
Are you custom coding your server?
If so, just program it to respond "Pong" to a "Ping" command. Time the interval between the sending and the receiving of "Pong".
If not, then you probably can't get ping. If it was, say, an HTTP server, you could try timing until the page got returned, but that's kind of silly because latency isnt important for an HTTP server
- Tigerworks
|
Metal-Geo
Registered 25/06/2003
Points 8
|
4th September, 2005 at 05:49:33 -
Thanks all for the advise. I have a pretty poor (and I believe even fake?) way-of-doing. For those who are still interested: At the start of the application MooSock connects to what ever you want immidiatly. During the time of connecting, you add 1 to the counter (using always or every 00-00). When connected you got the PING. It's not actually a real PING but it does show the speed of connecting. I just turned on everything to make my internet slow and my own application gave me poor results
I'm keeping it
Many routes lead to good software development. One of them is Clickteam.
|
Tigerworks Klik Legend
Registered 15/01/2002
Points 3882
|
4th September, 2005 at 15:13:48 -
Connecting usually takes longer though because I think it involves several back and forth communications so it's going to be a multiple of your ping.
Is it really that important?
- Tigerworks
|
Flava
Registered 30/07/2002
Points 684
|
4th September, 2005 at 16:22:05 -
Kingson has a ping feature for his Seek And Dread online game - you should send him an email or ask him on his forum at www.seekanddread.de - he might be able to help, as he uses HTTP for connecting and sending scores, and I believe that's where he gets his "ping" from.
This is a signature. Have this one on me.
|
|
|