Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Take message only 1 port by UDP socket receive
QtWS25 Last Chance

Take message only 1 port by UDP socket receive

Scheduled Pinned Locked Moved Unsolved General and Desktop
udpsocketportaccepttcp
4 Posts 2 Posters 282 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joe von Habsburg
    wrote on last edited by
    #1

    I would like to take message only 1 port number.

    how can I block other ports?

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Simply ignore the others

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • J Offline
        J Offline
        Joe von Habsburg
        wrote on last edited by
        #3

        for example,

        I want to message from 8080, but 9090 send message 20 times in every 1 ms.
        When its happend, I cannot take message from 8080 or missing a messages.

        How can I ignore ?

        Christian EhrlicherC 1 Reply Last reply
        0
        • J Joe von Habsburg

          for example,

          I want to message from 8080, but 9090 send message 20 times in every 1 ms.
          When its happend, I cannot take message from 8080 or missing a messages.

          How can I ignore ?

          Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Joe-von-Habsburg said in Take message only 1 port by UDP socket receive:

          How can I ignore ?

          Look at the QHostAddress and don't process it - there is no other chance except you add some filtering on OS level but Qt can't do anything against it.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved