Defined in file: hzIpServer.h
hzIpListen is a hzIpServer support class. It holds a listening socket and port, various control parameters and pointers to the OnIngress(), OnConnect() and OnDisconn() functions used to handle client connections.
Constructors/Detructors
| hzIpListen* | hzIpListen | (hzLogger* plog) | |
| NULL-TYPE | hzIpListen | (hzLogger* plog) | |
| void | ~hzIpListen | (void) | |
| NULL-TYPE | ~hzIpListen | (void) |
Public Methods:
Member Variables:
| sockaddr_in | m_Address | IP Addres of socket | |
| hzTcpCode(*)(hzIpConnex*) | m_OnConnect | Only for protocols in which the server sends the first message (server hello). | |
| hzTcpCode(*)(hzIpConnex*) | m_OnDisconn | Only provided if extra tidying up is needed on dissconnection. | |
| hzTcpCode(*)(hzChain&,hzIpConnex*) | m_OnIngress | To be called as soon as input exists. | |
| hzString | m_SockFile | For AF_UNIX sockets | |
| sockaddr_un | m_Unix | IP Addres of socket | |
| void* | m_appFn | Cast to the specific callback function (eg HTTP) | |
| uint16_t | m_bOpflags | Operational flags (HZ_LISTEN_SECURE | HZ_LISTEN_INTERNET | HZ_LISTEN_UDP) | |
| uint16_t | m_nActConn | Current number of simultaneous TCP connections on this port | |
| uint16_t | m_nMaxConn | Max number of simultaneous TCP connections on this port | |
| uint16_t | m_nPort | Port number server listens on | |
| uint32_t | m_nSocket | The actual listening socket | |
| uint32_t | m_nTimeout | Timeout appllied to all connections to this port | |
| hzLogger* | m_pLog | Log channel | |
| hzIpServer* | m_pServer | Applicable hzIpServer instance |