public class GetDateMessage extends I2CPMessageImpl
| Modifier and Type | Field and Description |
|---|---|
static int | MESSAGE_TYPEMESSAGE_TYPE. |
| Constructor and Description |
|---|
GetDateMessage()GetDateMessage. |
GetDateMessage(String version)Client's version String to be sent to the router; may be null. |
GetDateMessage(String version,
Properties options)Defaults in GetDateMessage options are, in general, NOT honored. |
| Modifier and Type | Method and Description |
|---|---|
protected void | doReadMessage(InputStream in,
int size)doReadMessage. |
protected byte[] | doWriteMessage()doWriteMessage. |
Properties | getOptions()Retrieve any configuration options for the connection. |
int | getType()Type. |
String | getVersion()Gets the protocol version. |
String | toString()Returns a string representation of this message. |
readBytes, readMessage, readMessage, sessionId, writeBytes, writeMessagepublic static final int MESSAGE_TYPE
public GetDateMessage()
public GetDateMessage(String version)
version - the client's version String to be sent to the router; may be nullpublic GetDateMessage(String version, Properties options)
version - the client's version String to be sent to the router; may be null;
must be non-null if options is non-null and non-empty.options - Client options to be sent to the router; primarily for authentication; may be null;
keys and values 255 bytes (not chars) max eachprotected void doReadMessage(InputStream in, int size) throws I2CPMessageException, IOException
doReadMessage in class I2CPMessageImplin - InputStreamsize - payload sizeI2CPMessageException - if the message format is invalidIOException - if there's an error reading from the streamprotected byte[] doWriteMessage()
throws I2CPMessageException,
IOExceptiondoWriteMessage in class I2CPMessageImplI2CPMessageException - if the message cannot be writtenIOException - if there's an error writing to the streampublic Properties getOptions()
public int getType()
public String getVersion()