Alexander B created DIRMINA-1136:
------------------------------------
Summary: Question about sending UDP message to multiple clients
Key: DIRMINA-1136
URL: https://issues.apache.org/jira/browse/DIRMINA-1136
Project: MINA
Issue Type: Test
Components: Example
Affects Versions: 2.0.22
Reporter: Alexander B
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]