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 constructor | hzPktQue() | Not specified in code. Default applies |
Public Methods:
| void | Clear | (void) | Remove all packets in packet queue Arguments: None Returns: None |
| hzPacket* | Peek | (void) | |
| void | Pull | (void) | Remove the first block in the packet queue Arguments: None Returns: None |
| hzEcode | Push | (hzPacket& pkt) | |
| hzEcode | Push | (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_t | Size | (void) |
Member Variables:
| uint32_t | m_nSeq | Packet sequence | |
| uint32_t | m_nSize | Current size in bytes | |
| hzPacket* | m_pFinal | The last IP packet in the que | |
| hzPacket* | m_pStart | The first IP packet in the que |