|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--qcsim.net.util.PeerMsgQuery
Message used to query peers for files.
| Field Summary | |
int |
contentCategory_
Content category containing the file being seeked |
int |
fileRank_
Rank of file being seeked |
int |
sourceID_
Peer id of sending node |
int |
TTL_
time-to-live |
| Fields inherited from interface qcsim.net.util.PeerMessage |
MSG_QUERY, MSG_QUERYRESPONSE, MSG_REQUESTDOWNLOAD, MSG_REQUESTTRUST, MSG_TRUST |
| Constructor Summary | |
PeerMsgQuery(int sourceID,
int TTL,
int contentCategory,
int fileRank)
Constructor |
|
PeerMsgQuery(PeerMsgQuery msg)
Copy Constructor |
|
| Method Summary | |
int |
type()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int sourceID_
public int TTL_
public int contentCategory_
public int fileRank_
| Constructor Detail |
public PeerMsgQuery(int sourceID,
int TTL,
int contentCategory,
int fileRank)
sourceID - peer id sending the queryTTL - time to live for the packet.contentCategory - content category containing the file requested.fileRank - rank of file being requested.public PeerMsgQuery(PeerMsgQuery msg)
msg - message to copy.| Method Detail |
public int type()
type in interface PeerMessage
|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||