class NTCP2Options extends Object
| Constructor and Description |
|---|
NTCP2Options(float sendMin,
float sendMax,
float recvMin,
float recvMax,
int sendDummy,
int recvDummy,
int sendDelay,
int recvDelay)All params are as named. |
| Modifier and Type | Method and Description |
|---|---|
static NTCP2Options | fromByteArray(byte[] options) |
int | getRecvDelay()The receive delay in milliseconds. |
int | getRecvDummy()The receive dummy data rate in bytes per second. |
float | getRecvMax()The receive padding max. |
float | getRecvMin()The receive padding min. |
int | getSendDelay()The send delay in milliseconds. |
int | getSendDummy()The send dummy data rate in bytes per second. |
float | getSendMax()The send padding max. |
float | getSendMin()The send padding min. |
NTCP2Options | merge(NTCP2Options his)Merge our options with the peer's options. |
String | toString()String representation of these padding options. |
public NTCP2Options(float sendMin,
float sendMax,
float recvMin,
float recvMax,
int sendDummy,
int recvDummy,
int sendDelay,
int recvDelay)public static NTCP2Options fromByteArray(byte[] options)
public int getRecvDelay()
public int getRecvDummy()
public float getRecvMax()
public float getRecvMin()
public int getSendDelay()
public int getSendDummy()
public float getSendMax()
public float getSendMin()
public NTCP2Options merge(NTCP2Options his)