ValvulaPeerRole valvula_connection_get_role ( ValvulaConnection connection)

Allows to get current connection role.

Parameters
connectionThe ValvulaConnection to get the current role from.
Returns
Current role represented by ValvulaPeerRole. If the function receives a NULL reference it will return ValvulaRoleUnknown.

References ValvulaRoleUnknown.