|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.transport.udp.UDPPacketReader
To read a packet, initialize this reader with the data and fetch out the appropriate fields. If the interesting bits are in message specific elements, grab the appropriate subreader.
Nested Class Summary | |
class |
UDPPacketReader.DataReader
parse out the data message |
class |
UDPPacketReader.SessionConfirmedReader
parse out the confirmed message |
class |
UDPPacketReader.SessionCreatedReader
Help read the SessionCreated payload |
class |
UDPPacketReader.SessionRequestReader
Help read the SessionRequest payload |
Constructor Summary | |
UDPPacketReader(I2PAppContext ctx)
|
Method Summary | |
UDPPacketReader.DataReader |
getDataReader()
|
UDPPacketReader.SessionConfirmedReader |
getSessionConfirmedReader()
|
UDPPacketReader.SessionCreatedReader |
getSessionCreatedReader()
|
UDPPacketReader.SessionRequestReader |
getSessionRequestReader()
|
void |
initialize(byte[] message,
int payloadOffset,
int payloadLength)
|
void |
initialize(UDPPacket packet)
|
boolean |
readExtendedOptionsIncluded()
|
void |
readKeyingMaterial(byte[] target,
int targetOffset)
|
int |
readPayloadType()
what type of payload is in here? |
boolean |
readRekeying()
does this packet include rekeying data? |
long |
readTimestamp()
|
void |
toRawString(java.lang.StringBuffer buf)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UDPPacketReader(I2PAppContext ctx)
Method Detail |
public void initialize(UDPPacket packet)
public void initialize(byte[] message, int payloadOffset, int payloadLength)
public int readPayloadType()
public boolean readRekeying()
public boolean readExtendedOptionsIncluded()
public long readTimestamp()
public void readKeyingMaterial(byte[] target, int targetOffset)
public UDPPacketReader.SessionRequestReader getSessionRequestReader()
public UDPPacketReader.SessionCreatedReader getSessionCreatedReader()
public UDPPacketReader.SessionConfirmedReader getSessionConfirmedReader()
public UDPPacketReader.DataReader getDataReader()
public java.lang.String toString()
public void toRawString(java.lang.StringBuffer buf)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |