|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RUDPMessage
Defines the interface in which all RUDP messages derive.
| Nested Class Summary | |
|---|---|
static class |
RUDPMessage.OpCode
Used to specify a message type (either SYN, ACK, KEEPALIVE, DATA or FIN). |
| Field Summary | |
|---|---|
static byte |
F_RUDP_MESSAGE
The main functor of an RUDP message. |
static short |
PROTOCOL_VERSION_NUMBER
|
| Method Summary | |
|---|---|
void |
extendSequenceNumber(long seqNo)
Extend the sequence number of incoming messages with the full 8 bytes of state |
byte |
getConnectionID()
Return the messages connectionID identifier. |
int |
getDataLength()
Return the length of data stored in this message. |
int |
getLength()
Returns the length of the message. |
RUDPMessage.OpCode |
getOpCode()
Gets the OpCode for the message. |
long |
getSequenceNumber()
Return the messages sequence number |
void |
write(OutputStream out)
Writes the message to the OutputStream. |
| Field Detail |
|---|
static final byte F_RUDP_MESSAGE
static final short PROTOCOL_VERSION_NUMBER
| Method Detail |
|---|
RUDPMessage.OpCode getOpCode()
void write(OutputStream out)
throws IOException
IOExceptionbyte getConnectionID()
long getSequenceNumber()
void extendSequenceNumber(long seqNo)
int getDataLength()
int getLength()
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||