... and of course, the application should be run as root. j3d.
> Hello All. > > I am using using mono to send udp packets between two hosts. At some > point, one host may go offline. If I watch the network (using ethereal) > I see the UDP packet go from A->B, and host B responds with a ICMP > destination unreachable packet. However, I don't see how I can get > access to that packet in my application. > > I was hoping that SendTo or ReceiveFrom could throw exceptions, but I > don't believe that is how they work. > > I also tried to make a separate socket to listen for the ICMP packets, > but under Linux and Mono 0.30, I get an exception when I try to create > the socket to listen for ICMP messages: > > Unhandled Exception: System.Net.Sockets.SocketException: Access denied > in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1f) > [0x4009176f] > in (unmanaged) /usr/local/lib/libmono.so.0 [0x400b1d7d] > in <0x00054> System.Net.Sockets.Socket:.ctor > (System.Net.Sockets.AddressFamily,System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType) > in <0x000d3> Gnucla.UdpEdgeListener:.ctor (int) > in <0x001b0> Gnucla.EchoTest:Main (string[]) > > Can anyone suggest a method that host A can see that host B is no longer > listening without doing it at the application layer? I just want the > ICMP packet to have an effect. > > Thanks. > POB > -- > [EMAIL PROTECTED] http://pobox.com/~boykin jabber: > [EMAIL PROTECTED] > fingerprint=D250 4AD9 4544 B7D2 A17C 911D D608 D387 6718 D75F > fix copyright: > http://cyberlaw.stanford.edu/lessig/blog/archives/EAFAQ.html > ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web: www.agamura.com ---------------------------------------- _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
