Package net.i2p.data.i2cp
Class SessionId
java.lang.Object
net.i2p.data.i2cp.SessionId
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintinthashCode()voidreadBytes(InputStream in) voidsetSessionId(int id) toString()voidwriteBytes(OutputStream out)
-
Constructor Details
-
SessionId
public SessionId() -
SessionId
public SessionId(int id) - Parameters:
id- 0-65535- Since:
- 0.9.11
-
-
Method Details
-
getSessionId
public int getSessionId() -
setSessionId
public void setSessionId(int id) - Parameters:
id- 0-65535- Throws:
IllegalArgumentExceptionIllegalStateException- if already set
-
readBytes
- Throws:
IllegalStateException- if already setDataFormatExceptionIOException
-
writeBytes
- Throws:
DataFormatExceptionIOException
-
equals
-
hashCode
public int hashCode() -
toString
-