"Vinod" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Dear all
>
> My Win 98machine is configured with 2 NICs connecetd to diferent LANs. If
a
> datagram packet is received to by muticast listnener socket joined to
> INADDR_ANY group in my machine with 2 NICs (both interfaces having an
IPV4
> address each, other than loop backs), a winsock recvfrom() can get me the
> address from which the packet came from. But is there a way to identify
> through which interface in my machine?
>
> Plese reply if any clarification needed.
>
> Thanks in advance for all expert advices
>
> Vinod
recvfrom() does not provide that information. If you need to discriminate
use two (or more) sockets each bound to one of the local addresses. This
will still not work quite as expected if IP packet forwarding is enabled
(which is unusual on Windows 9x/ME).
--
Paul Chitescu
(E-Mail Removed) http://pchitescu.null.ro/ ICQ:22641673
Any spammers will be painfully squeezed into /dev/null