I didn't do the code dive yet, so I don't understand why there are two
sockets (me not understanding doesn't mean it's wrong).  If one is for
unicast and one for multicast, I'd rather reply to the multicast on the
multicast socket.  The unicast socket should then simply ignore  packets
sent to the multicast address, which can be done by binding to a
specific address (except apparently on Windows) and/or by looking at the
PKTINFO of any received packet.

Gr??e, Carsten


Chandan wrote:
> Please confirm if you are suggesting this
> 1) Use IP_PKTINFO to detect the packet type whether it is MULTICAST or
> UNICAST.
> 2) Then start the timer for processing the request
> 3) If the request is received as unicast packet and gets
> processed(response sent) then we can ignore
> the request received in well known socket as multicast packet.

Reply via email to