From c77d95111d351fe157272381b9be26e023206986 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 2 Aug 2011 20:18:55 +0000 Subject: [PATCH] added a proposal for priorities of various RsItem types git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5_QoS@4514 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/pqiqos.h | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/libretroshare/src/pqi/pqiqos.h b/libretroshare/src/pqi/pqiqos.h index c7a3a22bb..497e6ef86 100644 --- a/libretroshare/src/pqi/pqiqos.h +++ b/libretroshare/src/pqi/pqiqos.h @@ -32,6 +32,48 @@ // \alpha is a constant that is not necessarily an integer, but strictly > 1. // - the set of possible priority levels is finite, and pre-determined. // +// We setup packet priority according to the following table: +// - some RsItems are omitted. The priority is the one of the closest parent item. +// - I listed only items that are sent to friends. +// +// +-------------------------+--------------------------------------------------+-----------------------------------------------+ +// |Item type | low priority <---- --------------> high priority | Comment | +// | | | | +// +-------------------------+- 0 -- 1 -- 2 -- 3 -- 4 -- 5 -- 6 -- 7 -- 8 -- 9 -+-----------------------------------------------+ +// |Turtle items | | | +// | RsGenericTunnelsItem | X | States for all turtle FT except file requests | +// | RsTurtleFileReqItem | X | | +// | RsTunnelRequestItem | X | | +// | RsTunnelOkItem | X | | +// | RsTurtleSearchRequest | X | | +// | RsTurtleSearchResult | X | | +// | | | | +// |File transfer | | | +// | RsFileChunkMapRequest | X | | +// | RsFileChunkMap | X | | +// | RsFileCRC32MapRequest | X | | +// | RsFileCRC32Map | X | | +// | RsFileRequest | X | | +// | RsFileData | X | | +// | RsCacheRequest | X | | +// | RsCacheItem | X | | +// | | | | +// |Discovery | | | +// | RsDiscReply | X | | +// | RsDiscAskInfo | X | | +// | RsDiscVersion | X | | +// | RsDiscHeartBeat | X | | +// | | | | +// |Chat | | | +// | RsChatItem | X | Parent of all chat messages | +// | RsChatAvatarItem | X | | +// | | | | +// |Various | | | +// | RsStatusItem | X | | +// | VOIP stream items | X | | +// | | | | +// +-------------------------+--------------------------------------------------+-----------------------------------------------+ +// #include #include