Package org.ldk.structs
Class Pong
- java.lang.Object
-
- org.ldk.structs.Pong
-
public class Pong extends Object
A pong message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pong
clone()
Creates a copy of the Pongprotected void
finalize()
short
get_byteslen()
The pong packet size.static Pong
of(short byteslen_arg)
Constructs a new Pong given each fieldstatic Result_PongDecodeErrorZ
read(byte[] ser)
Read a Pong from a byte array, created by Pong_writevoid
set_byteslen(short val)
The pong packet size.byte[]
write()
Serialize the Pong object into a byte array which can be read by Pong_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_byteslen
public short get_byteslen()
The pong packet size. This field is not sent on the wire. byteslen zeros are sent.
-
set_byteslen
public void set_byteslen(short val)
The pong packet size. This field is not sent on the wire. byteslen zeros are sent.
-
of
public static Pong of(short byteslen_arg)
Constructs a new Pong given each field
-
write
public byte[] write()
Serialize the Pong object into a byte array which can be read by Pong_read
-
read
public static Result_PongDecodeErrorZ read(byte[] ser)
Read a Pong from a byte array, created by Pong_write
-
-