Classified ads
|
Work queue item. More...
#include <netrequestexecutor.h>
Public Attributes | |
ProtocolItemType | iRequestType |
Hash | iDestinationNode |
Hash | iRequestedItem |
quint32 | iTimeStampOfItem |
quint32 | iTimeStampOfLastActivity |
NetworkRequestState | iState |
int | iMaxNumberOfItems |
QList< quint32 > | iBangPath |
QList< Hash > | iWishListForNodesAround |
Work queue item.
Have this kind of items in the queue waiting to be processed and finally sent to destination (if still connected)
QList<quint32> NetworkRequestExecutor::NetworkRequestQueueItem::iBangPath |
bang-path is used in publish-operations
Hash NetworkRequestExecutor::NetworkRequestQueueItem::iDestinationNode |
int NetworkRequestExecutor::NetworkRequestQueueItem::iMaxNumberOfItems |
Hash NetworkRequestExecutor::NetworkRequestQueueItem::iRequestedItem |
ProtocolItemType NetworkRequestExecutor::NetworkRequestQueueItem::iRequestType |
this iRequestType contais dual-use values. if request type is RequestFor..something and the iDestinationNode is KNullHash then it means that it the user that is requesting the content so this request is sent to neighboring nodes.
other possibility is that we receive RequestFor..something from neighboring node, in which case we have the iDestinationNode set, pointing back to node that wants the content. In this case we try fetch the content from local reposity and send it to given node.
NetworkRequestState NetworkRequestExecutor::NetworkRequestQueueItem::iState |
quint32 NetworkRequestExecutor::NetworkRequestQueueItem::iTimeStampOfItem |
quint32 NetworkRequestExecutor::NetworkRequestQueueItem::iTimeStampOfLastActivity |
QList<Hash> NetworkRequestExecutor::NetworkRequestQueueItem::iWishListForNodesAround |
this is initially empty. when iState is set to RequestBeingSentAround then this list here gets populated with the nodes around