Defined in file: hzUdpClient.h

The hzUdpClient class enables an application to act as a client using UDP.

Constructors/Detructors

hzUdpClient*hzUdpClient(void)
void~hzUdpClient(void)

Public Methods:

hzEcodeConnect(hzString& Hostname)uint32_t nPort, bool bLocal, There is of course, no such thing as a UDP connection in the same way there are TCP connections. However the host must still be looked up and a socket obtained before one can send and receive data so in terms of function call sequence, the two forms of communication are conceptually similar. It is the role of this function to do the host lookup and obtain the datagram socket.
char*GetCbuf(void)
unsigned char*GetUbuf(void)
hzEcodeRecvChain(hzChain& C)Reads one or more packets from the socket into the supplied chain until a zero length read occurs.
hzEcodeRecvPkt(hzPacket* pData)uint32_t& nRecv, Read a packet from the socket into the client buffer.
hzEcodeSendChain(hzChain& C)Write supplied chain content to a socket
hzEcodeSendPkt(hzPacket* pData)uint32_t nLen, Purpose: Write buffer content to a socket

Member Variables:

sockaddr_inm_CliAddraddress of client
hzStringm_HostnameServer client is connecting to
sockaddr_inm_SvrAddraddress of server
intm_SvrLenLength of SvrAddr in bytes
uint32_tm_nPortPort on server to connect to
uint32_tm_nSockConnected socket
hostent*m_pHostthe server
hzPacketm_packIP packet recepticle