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
|
// load source flags
|
||||||
static const int lsfPrivileged = 1;
|
static const int lsfPrivileged = 1;
|
||||||
|
static const int lsfOutbound = 2; // outbound connection
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int mBalance;
|
int mBalance;
|
||||||
@@ -27,6 +28,9 @@ public:
|
|||||||
bool isPrivileged() const { return (mFlags & lsfPrivileged) != 0; }
|
bool isPrivileged() const { return (mFlags & lsfPrivileged) != 0; }
|
||||||
void setPrivileged() { mFlags |= lsfPrivileged; }
|
void setPrivileged() { mFlags |= lsfPrivileged; }
|
||||||
int getBalance() const { return mBalance; }
|
int getBalance() const { return mBalance; }
|
||||||
|
|
||||||
|
void setOutbound() { mFlags |= lsfOutbound; }
|
||||||
|
bool isOutbound() const { return (mFlags & lsfOutbound) != 0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user