LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::StateConnectionOut Struct Referenceabstract

Interface for wrapping ConnectionOut with rate-limiting functionality.

#include <nrg_state.h>

Inheritance diagram for nrg::StateConnectionOut:
nrg::StateConnectionOutImpl

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.
 

The documentation for this struct was generated from the following file: