VortexPeerRole vortex_connection_get_role ( VortexConnection connection)

Allows to get current connection role.

Parameters
connectionThe VortexConnection to get the current role from.
Returns
Current role represented by VortexPeerRole. If the function receives a NULL reference it will return VortexRoleUnknown.

References VortexRoleUnknown.

Referenced by vortex_connection_get_next_channel().