| 2998 | } |
| 2999 | |
| 3000 | uint64_t CConnman::GetOutboundTargetBytesLeft() const |
| 3001 | { |
| 3002 | LOCK(cs_totalBytesSent); |
| 3003 | if (nMaxOutboundLimit == 0) |
| 3004 | return 0; |
| 3005 | |
| 3006 | return (nMaxOutboundTotalBytesSentInCycle >= nMaxOutboundLimit) ? 0 : nMaxOutboundLimit - nMaxOutboundTotalBytesSentInCycle; |
| 3007 | } |
| 3008 | |
| 3009 | uint64_t CConnman::GetTotalBytesRecv() const |
| 3010 | { |
no outgoing calls