Results 1 to 4 of 4

Thread: Reading all UDP packets

  1. #1
    Join Date
    May 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Reading all UDP packets

    Is it possible to read UDP packets sent to all ports?

    I seem to be able to get something read while the QUdpSocket is binded on some port but this blocks the port from other programs. I'm trying to achieve some sort of "forwarder" that reads certain UDP packets with right port addresses and forwards them over internet.

    Is this possible with Qt4(.4)?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Reading all UDP packets

    It's not a limitation of Qt, but the way sockets work. You will have to plug into the kernel or use raw sockets to achieve this.

  3. #3
    Join Date
    May 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Reading all UDP packets

    If I have to use raw sockets and Qt doesn't support raw sockets then it is the limitation of Qt.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Reading all UDP packets

    Yes, you can say it this way, but all UDP socket implementations are limited this way then.

Similar Threads

  1. problem with reading text files
    By Axsis in forum Newbie
    Replies: 1
    Last Post: 25th April 2008, 12:29
  2. QTextStream loses position while reading file
    By bjh in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2008, 15:47
  3. QWT 5, QT3, SuSE 10.2. Crash and burn
    By DrMcCleod in forum Qwt
    Replies: 8
    Last Post: 7th September 2007, 20:53
  4. Updation of GUI truncates Packets
    By arunvv in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th July 2007, 19:13
  5. Server not reading
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 7th December 2006, 14:45

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.