Interface for wrapping ConnectionOut with rate-limiting functionality.
#include <nrg_state.h>
Public Member Functions | |
virtual bool | ready ()=0 |
Returns true if more Packets can be sent right now with sendPacket. | |
virtual Status | sendPacket (Packet &p, PacketFlags f=PKTFLAG_NONE)=0 |
Try to send a packet, returns a error Status if it couldn't because of the rate-limit. | |
virtual Status | resendLastPacket ()=0 |
Try to resend the last packet send, returns an error status if it couldn't because of the rate-limit. | |