Package net.i2p.data.i2cp
Class SessionId
- java.lang.Object
-
- net.i2p.data.i2cp.SessionId
-
public class SessionId extends Object
Defines the token passed between the router and client to associate messages with a particular session. These IDs are not globally unique. As of 0.9.48, does NOT extend DataStructureImpl.- Author:
- jrandom
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetSessionId()inthashCode()voidreadBytes(InputStream in)voidsetSessionId(int id)StringtoString()voidwriteBytes(OutputStream out)
-
-
-
Method Detail
-
getSessionId
public int getSessionId()
-
setSessionId
public void setSessionId(int id)
- Parameters:
id- 0-65535- Throws:
IllegalArgumentExceptionIllegalStateException- if already set
-
readBytes
public void readBytes(InputStream in) throws DataFormatException, IOException
- Throws:
IllegalStateException- if already setDataFormatExceptionIOException
-
writeBytes
public void writeBytes(OutputStream out) throws DataFormatException, IOException
- Throws:
DataFormatExceptionIOException
-
-