Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1136

Question about sending UDP message to multiple clients

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.0.22
    • None
    • Example
    • None

    Description

      Hello guys,

      Imagine i have a String-message, which i want to send to multiple udp clients given by their ip adresses and ports. Do you have any short example of how to publish this message efficiently?

      My attempt (Pseudocode):

      NioDatagramConnector connector = new NioDatagramConnector();
      foreach (client in clients)

      { connector.connect(new InetSocketAddress(client.ip, client.port)); connector.broadcast(message); }

      Would this be a correct attempt, which even works for a large number of items/second?

      Thanks for any advice.
      Alex

      Attachments

        Activity

          People

            Unassigned Unassigned
            abuechel Alexander B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: