public class CreateSessionMessage extends I2CPMessageImpl
| Modifier and Type | Field and Description |
|---|---|
static int | MESSAGE_TYPEMESSAGE_TYPE. |
| Constructor and Description |
|---|
CreateSessionMessage()CreateSessionMessage. |
CreateSessionMessage(SessionConfig config)CreateSessionMessage. |
| Modifier and Type | Method and Description |
|---|---|
protected void | doReadMessage(InputStream in,
int size)doReadMessage. |
protected byte[] | doWriteMessage()doWriteMessage. |
SessionConfig | getSessionConfig()Session config. |
int | getType()Type. |
void | setSessionConfig(SessionConfig config)setSessionConfig. |
String | toString()Returns a string representation of this message. |
readBytes, readMessage, readMessage, sessionId, writeBytes, writeMessagepublic static final int MESSAGE_TYPE
public CreateSessionMessage()
public CreateSessionMessage(SessionConfig config)
protected 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 SessionConfig getSessionConfig()
public int getType()
public void setSessionConfig(SessionConfig config)