Package org.ldk.structs
Class Ping
- java.lang.Object
-
- org.ldk.structs.Ping
-
public class Ping extends Object
A ping message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pingclone()Creates a copy of the Pingprotected voidfinalize()shortget_byteslen()The ping packet size.shortget_ponglen()The desired response lengthstatic Pingof(short ponglen_arg, short byteslen_arg)Constructs a new Ping given each fieldstatic Result_PingDecodeErrorZread(byte[] ser)Read a Ping from a byte array, created by Ping_writevoidset_byteslen(short val)The ping packet size.voidset_ponglen(short val)The desired response lengthbyte[]write()Serialize the Ping object into a byte array which can be read by Ping_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_ponglen
public short get_ponglen()
The desired response length
-
set_ponglen
public void set_ponglen(short val)
The desired response length
-
get_byteslen
public short get_byteslen()
The ping packet size. This field is not sent on the wire. byteslen zeros are sent.
-
set_byteslen
public void set_byteslen(short val)
The ping packet size. This field is not sent on the wire. byteslen zeros are sent.
-
of
public static Ping of(short ponglen_arg, short byteslen_arg)
Constructs a new Ping given each field
-
write
public byte[] write()
Serialize the Ping object into a byte array which can be read by Ping_read
-
read
public static Result_PingDecodeErrorZ read(byte[] ser)
Read a Ping from a byte array, created by Ping_write
-
-