开发者

TCP Ping in Silverlight

Is it possible to run a TCP Ping in Silverlight? I know raw sockets are not allo开发者_StackOverflowwed, which is a big limit. But can you achieve something similar to speedtest.net which does a ping utilizing Flash?


It depends on what you're wanting to do. If you want to do a "real" ping, i.e., using ICMP, no you can't. But if you just want to know whether you're connected to the Internet in some fashion, or if some server is online, you could use the WebClient classes to see if a given web server responds, or if you control the server, you could use the Socket classes to try to open up a connection to a Silverlight-accessible port.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜