Java Network Traffic Generator: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


* [[Linux_7_Multicast_Configuration#Testing|Linux Multicast Configuration]]
* [[Linux_7_Multicast_Configuration#Testing|Linux Multicast Configuration]]
=Overview=
A Java program sends multicast socket using <tt>DatagramSocket</tt> and listens for multicast traffic with <tt>MulticastSocket</tt>.


=GitHub=
=GitHub=

Revision as of 00:39, 15 March 2017

External

Internal

Overview

A Java program sends multicast socket using DatagramSocket and listens for multicast traffic with MulticastSocket.

GitHub

https://github.com/NovaOrdis/playground/tree/master/java/multicast

User Manual

Listen for multicast:

java -jar multicast.jar listen  <multicast-address>:<port>

Send multicast:

java -jar multicast.jar send <network-interface> <multicast-address>:<port>