MyQttPeerRole myqtt_conn_get_role ( MyQttConn connection)

Allows to get current connection role.

Parameters
connectionThe MyQttConn to get the current role from.
Returns
Current role represented by MyQttPeerRole. If the function receives a NULL reference it will return MyQttRoleUnknown.

References MyQttRoleUnknown.

Referenced by myqttd_conn_mgr_conn_list().