|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.messages.AbstractMessage
com.limegroup.gnutella.rudp.messages.AbstractLimeRUDPMessage<T>
public abstract class AbstractLimeRUDPMessage<T extends RUDPMessage>
An abstract class that extends from Message and takes a DHTMessage as a delegate argument
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.limewire.rudp.messages.RUDPMessage |
|---|
RUDPMessage.OpCode |
| Nested classes/interfaces inherited from interface com.limegroup.gnutella.messages.Message |
|---|
Message.MessageCounter, Message.Network |
| Field Summary | |
|---|---|
protected T |
delegate
The message this is wrapping. |
| Fields inherited from interface org.limewire.rudp.messages.RUDPMessage |
|---|
F_RUDP_MESSAGE, PROTOCOL_VERSION_NUMBER |
| Fields inherited from interface com.limegroup.gnutella.messages.Message |
|---|
F_PING, F_PING_REPLY, F_PUSH, F_QUERY, F_QUERY_REPLY, F_ROUTE_TABLE_UPDATE, F_UDP_CONNECTION, F_VENDOR_MESSAGE, F_VENDOR_MESSAGE_STABLE |
| 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. |
RUDPMessage.OpCode |
getOpCode()
Gets the OpCode for the message. |
long |
getSequenceNumber()
Return the messages sequence number |
int |
getTotalLength()
Returns the total length of this, in bytes |
String |
toString()
|
void |
write(OutputStream out)
Writes the message to the OutputStream. |
void |
write(OutputStream out,
byte[] buf)
Writes a message out, using the buffer as the temporary header. |
protected void |
writePayload(OutputStream out)
|
void |
writeQuickly(OutputStream out)
Writes a message quickly, without using temporary buffers or crap. |
| Methods inherited from class com.limegroup.gnutella.messages.AbstractMessage |
|---|
compareTo, getCreationTime, getFunc, getGUID, getHandlerClass, getHops, getLength, getNetwork, getPriority, getTTL, hop, isMulticast, isTCP, isUDP, isUnknownNetwork, makeGuid, repOk, setGUID, setHops, setPriority, setTTL, updateLength |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.limewire.rudp.messages.RUDPMessage |
|---|
getLength |
| Field Detail |
|---|
protected final T extends RUDPMessage delegate
| Method Detail |
|---|
public RUDPMessage.OpCode getOpCode()
RUDPMessage
getOpCode in interface RUDPMessagepublic int getTotalLength()
AbstractMessage
getTotalLength in interface MessagegetTotalLength in class AbstractMessage
public void write(OutputStream out)
throws IOException
RUDPMessage
write in interface Messagewrite in interface RUDPMessagewrite in class AbstractMessageIOException
public final void write(OutputStream out,
byte[] buf)
throws IOException
AbstractMessage
write in interface Messagewrite in class AbstractMessageIOException
public final void writeQuickly(OutputStream out)
throws IOException
AbstractMessage
writeQuickly in interface MessagewriteQuickly in class AbstractMessageIOException
protected final void writePayload(OutputStream out)
throws IOException
writePayload in class AbstractMessageIOExceptionpublic String toString()
toString in class AbstractMessagepublic void extendSequenceNumber(long seqNo)
RUDPMessage
extendSequenceNumber in interface RUDPMessagepublic byte getConnectionID()
RUDPMessage
getConnectionID in interface RUDPMessagepublic int getDataLength()
RUDPMessage
getDataLength in interface RUDPMessagepublic long getSequenceNumber()
RUDPMessage
getSequenceNumber in interface RUDPMessage
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||