const char * vortex_connection_get_host ( VortexConnection connection)

Returns the actual host this connection is connected to.

In the case the connection you have provided have the VortexRoleMasterListener role (vortex_connection_get_role), that is, listener connections that are waiting for connections, the function will return the actual host used by the listener.

You must not free returned value. If you do so, you will get unexpected behaviors.

Parameters
connectionthe connection to get host value.
Returns
the host the given connection is connected to or NULL if something fail.

Referenced by vortex_websocket_listener_new().