PDA

View Full Version : Deduct network interface from incoming UDP Packet



mastupristi
29th March 2012, 16:26
Hi,

I have 2 network interface.
I can receive UDP PAckets from both of them.
I need to know from which interface comes a packet. Is it possible?

Thanks

wysota
29th March 2012, 18:09
You can bind a socket to a specific single interface using QUdpSocket::bind(). This way you can have two sockets for two different interfaces.