Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | public: | ||||
//! Ban node. | //! Ban node. | ||||
virtual bool ban(const CNetAddr &net_addr, BanReason reason, | virtual bool ban(const CNetAddr &net_addr, BanReason reason, | ||||
int64_t ban_time_offset) = 0; | int64_t ban_time_offset) = 0; | ||||
//! Unban node. | //! Unban node. | ||||
virtual bool unban(const CSubNet &ip) = 0; | virtual bool unban(const CSubNet &ip) = 0; | ||||
//! Disconnect node. | //! Disconnect node by address. | ||||
virtual bool disconnect(const CNetAddr &net_addr) = 0; | |||||
//! Disconnect node by id. | |||||
virtual bool disconnect(NodeId id) = 0; | virtual bool disconnect(NodeId id) = 0; | ||||
//! Get total bytes recv. | //! Get total bytes recv. | ||||
virtual int64_t getTotalBytesRecv() = 0; | virtual int64_t getTotalBytesRecv() = 0; | ||||
//! Get total bytes sent. | //! Get total bytes sent. | ||||
virtual int64_t getTotalBytesSent() = 0; | virtual int64_t getTotalBytesSent() = 0; | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |