This content has been marked as final. Show 5 replies
Flex, a client side process, can access the outside world in only a few ways. Among these are flash remoting, the three RPC protocols, sockets, maybe a few others.
When you say "ping", exactly what do you mean?
Basically, for each server I need to request a url and time how long it takes to recieve it from the request. I was just using "ping" as an easy way to describe it. I didn't mean an actual ICMP packet.
What does that url expect and return?
Nothing. We're essentially just grabbing google.com. The purpose is to benchmark a proxy of sorts in which we see how long it takes to pull google straight from the client, and then pull google through a couple proxies for comparision. So the urls needed to be called would be something like:
Then use HTTPService. Maybe resultFormat="text" because you will probably get html back.
Obviously you will need to use result and fault handlers for this.
Set a timer when you invoke send(), then when you get the result or fault, and take the difference.