mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Track connection direction.
This commit is contained in:
@@ -13,6 +13,7 @@ public:
|
||||
|
||||
// load source flags
|
||||
static const int lsfPrivileged = 1;
|
||||
static const int lsfOutbound = 2; // outbound connection
|
||||
|
||||
protected:
|
||||
int mBalance;
|
||||
@@ -27,6 +28,9 @@ public:
|
||||
bool isPrivileged() const { return (mFlags & lsfPrivileged) != 0; }
|
||||
void setPrivileged() { mFlags |= lsfPrivileged; }
|
||||
int getBalance() const { return mBalance; }
|
||||
|
||||
void setOutbound() { mFlags |= lsfOutbound; }
|
||||
bool isOutbound() const { return (mFlags & lsfOutbound) != 0; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user