摘要:        
以下介绍C# ping命令的两种实现方法。C# ping命令实现:利用原始Socket套接字,实现ICMP协议。usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Net; usingSystem.Net.Sockets; namespacePingC { classping { constintSOCKET_ERROR=-1; constintICMP_ECHO=8; staticvoidMain(string[]args) { pingp=newping(); Console.WriteLi    阅读全文
posted @ 2011-11-17 09:05
Daniel_Lu
阅读(1155)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号