class NTCP2Options extends Object
Constructor | Description |
---|---|
NTCP2Options(float sendMin,
float sendMax,
float recvMin,
float recvMax,
int sendDummy,
int recvDummy,
int sendDelay,
int recvDelay) |
Modifier and Type | Method | Description |
---|---|---|
static NTCP2Options |
fromByteArray(byte[] options) |
|
int |
getRecvDelay() |
|
int |
getRecvDummy() |
|
float |
getRecvMax() |
|
float |
getRecvMin() |
|
int |
getSendDelay() |
|
int |
getSendDummy() |
|
float |
getSendMax() |
|
float |
getSendMin() |
|
NTCP2Options |
merge(NTCP2Options his) |
Get a combined config for this connection.
|
String |
toString() |
public NTCP2Options(float sendMin, float sendMax, float recvMin, float recvMax, int sendDummy, int recvDummy, int sendDelay, int recvDelay)
public float getSendMin()
public float getSendMax()
public float getRecvMin()
public float getRecvMax()
public int getSendDummy()
public int getRecvDummy()
public int getSendDelay()
public int getRecvDelay()
public NTCP2Options merge(NTCP2Options his)
his
- far end options (send is his send, recv is his recv)public static NTCP2Options fromByteArray(byte[] options)