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.

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