|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucr.core.Message
ucr.core.TraceReplyMessage
TraceReply message, response to a trace request
Field Summary | |
private java.util.Vector |
traceRecords
|
Fields inherited from class ucr.core.Message |
guid, hops, originatingConnection, payload, payloadSize, QUERY, QUERYREPLY, SIZE, SIZE_QUERY_PAYLOAD, SIZE_QUERYREPLY_PAYLOAD, TRACE, TRACEREPLY, ttl, type |
Constructor Summary | |
(package private) |
TraceReplyMessage()
|
|
TraceReplyMessage(GUID traceGUID)
Used to respond to a trace message |
(package private) |
TraceReplyMessage(short[] rawMessage,
Connection originatingConnection)
Construct a trace reply message from data read read from network |
Method Summary | |
void |
addFileRecord(TraceRecord traceRecord)
Adds a file record. |
(package private) void |
buildPayload()
Contructs the payload for the search reply message Used when SENDING a message |
(package private) void |
buildVector()
|
(package private) byte[] |
getByteArray()
Produces a byte[] suitable for GNUTELLA network |
java.util.Vector |
getTraceRecords()
Get the vector of trace records Remember that at this point everything is in raw data stored in the payload. |
Methods inherited from class ucr.core.Message |
addPayload, addPayload, getGUID, getHops, getOriginatingConnection, getPayload, getPayloadLength, getTTL, getType, setGUID, setHops, setTTL, toRawString, toString, validatePayloadSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.util.Vector traceRecords
Constructor Detail |
TraceReplyMessage()
public TraceReplyMessage(GUID traceGUID)
traceGUID
- the guid of the trace messageTraceReplyMessage(short[] rawMessage, Connection originatingConnection)
rawMessage
- binary data from a connectionoriginatingConnection
- Connection creating this messageMethod Detail |
void buildPayload()
public void addFileRecord(TraceRecord traceRecord)
traceRecord
- file informationpublic java.util.Vector getTraceRecords()
void buildVector()
byte[] getByteArray()
getByteArray
in class Message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |