icmp server: ReceivePacket, ReceivePackets or ReceiveSomePackets ?

Apr 1, 2013 at 6:44 PM
Basically what i want to do is listen for icmp echo requests on a selected device and send back icmp echo replies.

To do so i need to understand how ReceivePacket, ReceivePackets and ReceiveSomePackets work.

The idea would be to filter out non-icmp packets and read one icmp packet at a time, then build a proper EchoReply response and send it.

Should i put ReceivePacket inside a while loop, use ReceivePackets with a callback or rely on ReceiveSomePackets ?

Thanks in advance for the help.
Coordinator
Apr 16, 2013 at 8:12 AM
Hi serpiccio,

I think all methods would work out for you.

I would start with the simplest method (probably ReceivePacket()), and see if this works well for you.

Boaz.