(svn r20553) -Feature: allow rate limiting of incoming commands

This commit is contained in:
rubidium
2010-08-19 08:59:36 +00:00
parent 0d68b98482
commit 6d3c747d05
9 changed files with 31 additions and 6 deletions

View File

@@ -78,6 +78,7 @@ struct CommandPacket;
class CommandQueue {
CommandPacket *first; ///< The first packet in the queue.
CommandPacket *last; ///< The last packet in the queue; only valid when first != NULL.
uint count; ///< The number of items in the queue.
public:
/** Initialise the command queue. */
@@ -88,6 +89,8 @@ public:
CommandPacket *Pop();
CommandPacket *Peek();
void Free();
/** Get the number of items in the queue. */
uint Count() const { return this->count; }
};
/** Status of a client */