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

Implementation of StateConnectionOut.

#include <nrg_state.h>

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

Public Member Functions

 StateConnectionOutImpl (ConnectionOut &out)
 Default constructor.
 
void reset (bool ready_to_send)
 Marks the StateConnectionOutImpl so that ready_to_send decides if more packets can be sent or not.
 
bool sentPackets ()
 Returns true if one or more packets have been sent through this StateConnectionOutImpl since the last reset()
 
bool ready ()
 Returns true if more Packets can be sent right now with sendPacket.
 
Status sendPacket (Packet &p, PacketFlags f=PKTFLAG_NONE)
 Try to send a packet, returns a error Status if it couldn't because of the rate-limit.
 
Status resendLastPacket ()
 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: