Class UDPSource

    • Constructor Detail

      • UDPSource

        public UDPSource​(int port)
        Throws:
        RuntimeException - on DatagramSocket IOException
      • UDPSource

        public UDPSource​(DatagramSocket sock)
        use socket from UDPSink
    • Method Detail

      • setSink

        public void setSink​(Sink sink)
        Specified by:
        setSink in interface Source
      • start

        public void start()
        Specified by:
        start in interface Source
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • getPort

        public int getPort()
        Returns:
        the local port of the DatagramSocket we are receiving on
        Since:
        0.9.53
      • stop

        public void stop()