Re: [Mono-list] UDP and ICMP

2004-02-05 Thread P Oscar Boykin
See, that's the problem. I really don't care about getting the ICMP message, or sending it. I just want my NON-ROOT user to know that the host he is sending a UDP packet to is responding with destination unreachable packets. There has to be (or rather should be) a way for a non-root user to

Re: [Mono-list] UDP and ICMP

2004-02-05 Thread Marco Canini
On Thu, 2004-02-05 at 05:41, P Oscar Boykin wrote: 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

Re: [Mono-list] UDP and ICMP

2004-02-05 Thread P Oscar Boykin
On Thu, Feb 05, 2004 at 11:21:15AM +0100, Marco Canini wrote: On Thu, 2004-02-05 at 05:41, P Oscar Boykin wrote: 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

Re: [Mono-list] UDP and ICMP

2004-02-05 Thread P Oscar Boykin
Sorry for replying to myself... On Thu, Feb 05, 2004 at 10:45:16AM -0800, P Oscar Boykin wrote: There are APIs that throw errors when the ICMP message comes in. For instance, in Java there is the PortUnreachableException:

[Mono-list] UDP and ICMP

2004-02-04 Thread P Oscar Boykin
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

Re: [Mono-list] UDP and ICMP

2004-02-04 Thread Giuseppe Greco
Oscar, If I've well understood, you are looking for a way to handle ICMP packets... Well, you have to relay on raw sockets. Here below is how you can create a raw socket for ICMP: Socket socket = new Socket( AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);

Re: [Mono-list] UDP and ICMP

2004-02-04 Thread Giuseppe Greco
Oscar, If I've well understood, you are looking for a way to handle ICMP packets... Well, you have to relay on raw sockets. Here below is how you can create a raw socket for ICMP: Socket socket = new Socket( AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);

Re: [Mono-list] UDP and ICMP

2004-02-04 Thread Giuseppe Greco
... 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