Defined in file: hzIpServer.h

hzPktQue is a hzIpConnex support class, which queues instances of hzPacket for outgoing responses. hzPktQue is conceptually similar to hzChain, except that the unit of data is a packet, rather than a byte. While both hzPktQue and hzChain are always appended and read from the begining, with hzPktQue, all packets may be partially filled and the write and iteration processes are assumed to be ongoing, with packets being removed from the start of the chain after they have been processed.

Constructors/Detructors

hzPktQue*hzPktQue(void)
Default constructorhzPktQue()Not specified in code. Default applies

Public Methods:

voidClear(void)Remove all packets in packet queue Arguments: None Returns: None
hzPacket*Peek(void)
voidPull(void)Remove the first block in the packet queue Arguments: None Returns: None
hzEcodePush(hzPacket& pkt)
hzEcodePush(hzChain& Z)Send a response to the client. This function should always be called by applications rather than writing to the client socket directly as this ensures proper multiplexing between clients.
uint32_tSize(void)

Member Variables:

uint32_tm_nSeqPacket sequence
uint32_tm_nSizeCurrent size in bytes
hzPacket*m_pFinalThe last IP packet in the que
hzPacket*m_pStartThe first IP packet in the que