Class UdpFrameReceiver

java.lang.Object
org.yamcs.sle.udpslebridge.UdpFrameReceiver
All Implemented Interfaces:
Runnable, FrameDownlinker

public class UdpFrameReceiver extends Object implements FrameDownlinker, Runnable
  • Constructor Details

    • UdpFrameReceiver

      public UdpFrameReceiver(int port, int maxFrameLength)
  • Method Details

    • init

      public void init(RacfServiceProvider rsp)
      Description copied from interface: FrameDownlinker
      Called at the beginning to initialise.
      Specified by:
      init in interface FrameDownlinker
      Parameters:
      rsp - - the frames should be forwarded to this
    • run

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

      public int start()
      Description copied from interface: FrameDownlinker
      Called at SLE start to start the provision of frames
      Specified by:
      start in interface FrameDownlinker
      Returns:
      -1 if the result is successful. return greater or equal with 0 means error and the code will be inserted into the specific part of the SLE return message
    • stop

      public void stop()
      Description copied from interface: FrameDownlinker
      Called at SLE stop
      Specified by:
      stop in interface FrameDownlinker
    • shutdown

      public void shutdown()
      Description copied from interface: FrameDownlinker
      Called when the RAF service is unbound
      Specified by:
      shutdown in interface FrameDownlinker