Implementation of StateConnectionOut.
#include <nrg_state.h>
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. | |