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
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
int
getSessionId()
int
hashCode()
void
readBytes(InputStream in)
void
setSessionId(int id)
String
toString()
void
writeBytes(OutputStream out)
-
Constructor Details
-
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
-