const char* nopoll_conn_host ( noPollConn conn)

Returns the host location this connection connects to or it is listening (according to the connection role noPollRole).

If you are looking for a way to get the Host: header value received for this connection during the handshake, use: nopoll_conn_get_host_header.

Parameters
connThe connection to check for the host value.
Returns
The host location value or NULL if it fails.