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.

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