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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
hashCode()
void
readBytes
(InputStream in) void
setSessionId
(int id) toString()
void
writeBytes
(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:
IllegalArgumentException
IllegalStateException
- if already set
-
readBytes
- Throws:
IllegalStateException
- if already setDataFormatException
IOException
-
writeBytes
- Throws:
DataFormatException
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-