const char * myqtt_conn_get_port ( MyQttConn connection)

Returns the actual port this connection is connected to.

In the case the connection you have provided have the MyQttRoleMasterListener role (myqtt_conn_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.