Move PackedMessage to ripple_data

This commit is contained in:
Vinnie Falco
2013-06-05 06:15:26 -07:00
parent b523b6c8d4
commit 4d1bf35236
23 changed files with 405 additions and 401 deletions

View File

@@ -5,6 +5,7 @@
#include <boost/thread/mutex.hpp>
// VFALCO: TODO replace LT_ with loadType in constants
enum LoadType
{ // types of load that can be placed on the server
@@ -44,8 +45,9 @@ public:
LoadCost(LoadType t, int cost, int cat) : mType(t), mCost(cost), mCategories(cat) { ; }
};
// a single endpoint that can impose load
class LoadSource
{ // a single endpoint that can impose load
{
private:
// VFALCO: Make this not a friend
friend class LoadManager;
@@ -97,9 +99,9 @@ private:
bool mLogged;
};
// a collection of load sources
class LoadManager
{ // a collection of load sources
{
public:
LoadManager(int creditRate = 100, int creditLimit = 500, int debitWarn = -500, int debitLimit = -1000);