VortexPeerRole vortex_connection_get_role VortexConnection connection  ) 
 

Allows to get current connection role.

Parameters:
connection The VortexConnection to get the current role from.
Returns:
Current role represented by VortexPeerRole. If the given connection is not connected, using vortex_connection_is_ok, the function will return VortexRoleUnknown.