Results 1 to 2 of 2

Thread: Deduct network interface from incoming UDP Packet

  1. #1
    Join Date
    May 2009
    Posts
    75
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Deduct network interface from incoming UDP Packet

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Deduct network interface from incoming UDP Packet

    You can bind a socket to a specific single interface using QUdpSocket::bind(). This way you can have two sockets for two different interfaces.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Binding QTcpSocket to a specific network interface
    By vkincaid in forum Qt Programming
    Replies: 0
    Last Post: 14th May 2010, 21:28
  2. Replies: 12
    Last Post: 22nd March 2009, 11:22
  3. Replies: 0
    Last Post: 18th March 2009, 06:33
  4. GUI Freezes unless there's incoming data
    By crisp in forum Qt Programming
    Replies: 17
    Last Post: 7th February 2009, 17:56
  5. QTcpServer limit for incoming connections
    By mdecandia in forum Qt Programming
    Replies: 9
    Last Post: 5th May 2007, 22:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.