Raw sockets in monotouch
问题 I'm trying to implement ping function in MonoTouch. for some reasons, Ping class from System.Net.NetworkInformation doesn't work on the real device, so I decided to switch to raw sockets and implement ping myself. Unfortunately, I'm getting "Access Denied" message on: socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp); Any idea how could ping be done in monotouch? And why can't I create raw sockets? 回答1: I have not tried raw socket but your Access Denied likely