Package org.yamcs.sle.udpslebridge
Class UdpCltuUplinker
- java.lang.Object
-
- org.yamcs.sle.udpslebridge.UdpCltuUplinker
-
- All Implemented Interfaces:
CltuUplinker
public class UdpCltuUplinker extends Object implements CltuUplinker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.yamcs.sle.provider.CltuUplinker
CltuUplinker.UplinkResult
-
-
Constructor Summary
Constructors Constructor Description UdpCltuUplinker(String hostname, int port, int bitrate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intstart()Called at SLE start to startvoidstop()Called at SLE stopCltuUplinker.UplinkResultuplink(byte[] cltuData)uplinks the CLTU.
-
-
-
Constructor Detail
-
UdpCltuUplinker
public UdpCltuUplinker(String hostname, int port, int bitrate)
-
-
Method Detail
-
start
public int start()
Description copied from interface:CltuUplinkerCalled at SLE start to start- Specified by:
startin interfaceCltuUplinker- 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 start return message
-
uplink
public CltuUplinker.UplinkResult uplink(byte[] cltuData)
Description copied from interface:CltuUplinkeruplinks the CLTU. The method should block for the duration of the uplink- Specified by:
uplinkin interfaceCltuUplinker- Returns:
-
stop
public void stop()
Description copied from interface:CltuUplinkerCalled at SLE stop- Specified by:
stopin interfaceCltuUplinker
-
-