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 boolean
equals(Object obj)
int
getSessionId()
int
hashCode()
void
readBytes(InputStream in)
void
setSessionId(int id)
String
toString()
void
writeBytes(OutputStream out)
-
-
-
Method Detail
-
getSessionId
public int getSessionId()
-
setSessionId
public void setSessionId(int id)
- Parameters:
id
- 0-65535- Throws:
IllegalArgumentException
IllegalStateException
- if already set
-
readBytes
public void readBytes(InputStream in) throws DataFormatException, IOException
- Throws:
IllegalStateException
- if already setDataFormatException
IOException
-
writeBytes
public void writeBytes(OutputStream out) throws DataFormatException, IOException
- Throws:
DataFormatException
IOException
-
-