R
Roger Jansen
I want to create a UDP socket that receives broadcast messages only from
a specific network device (in case there are more than one network
devices).
When I bind the socket to INADDR_ANY I receive all messages, but when I
bind to a specific IP address, no broadcast messages are received at all
on IRIX or Linux. On Windows2K it works like I expected.
I still have to test it on a Unix machine with two network cards, but I
think binding to a specific address should work also with only one.
Note that when I use INADDR_ANY on Windows with two network cards each
connected to a seperate network, I receive each message twice on the
same socket!! That's why INADDR_ANY in combination with different UDP
ports for both netwoks is not an option.
Does anyone has experience with multiple network devices??
a specific network device (in case there are more than one network
devices).
When I bind the socket to INADDR_ANY I receive all messages, but when I
bind to a specific IP address, no broadcast messages are received at all
on IRIX or Linux. On Windows2K it works like I expected.
I still have to test it on a Unix machine with two network cards, but I
think binding to a specific address should work also with only one.
Note that when I use INADDR_ANY on Windows with two network cards each
connected to a seperate network, I receive each message twice on the
same socket!! That's why INADDR_ANY in combination with different UDP
ports for both netwoks is not an option.
Does anyone has experience with multiple network devices??