Class UDPSink

  • All Implemented Interfaces:
    Sink

    public class UDPSink
    extends Object
    implements Sink
    Author:
    welterde
    • Field Detail

      • remotePort

        protected final int remotePort
    • Method Detail

      • send

        public void send​(Destination src,
                         byte[] data)
        Specified by:
        send in interface Sink
        Parameters:
        src - ignored
        Throws:
        RuntimeException - on DatagramSocket IOException
      • getPort

        public int getPort()
      • getSocket

        public DatagramSocket getSocket()
        to pass to UDPSource constructor
      • stop

        public void stop()