const char * vortex_connection_get_port ( VortexConnection connection)

Returns the actual port this connection is connected to.

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

Parameters
connectionthe connection to get the port value.
Returns
the port or NULL if something fails.

Referenced by vortex_websocket_listener_new().