tibasSpace_SetDistributionRole()

Sets the distribution role of the member for the space.

Declaration

tibas_status tibasSpace_SetDistributionRole
(tibasSpace              space,
tibas_distributionRole   role)

Parameters

Parameter Description
space Specifies the Space object for which to set the distribution role.
role The role of the space can be either TIBAS_ROLE_LEECH or TIBAS_ROLE_SEEDER.

Remarks

Use the tibasSpace_SetDistributionRole() function to change the distribution role for the space after it has been set initially.

The distribution role is set initially when your application sets the distribution role using tibasMetaspace_GetSpaceEx() and then joins the space by calling the tibasMetaspace_Connect() function and referencing the MemberDef object that specifies the distribution role, or when the application joins the space by calling the tibasMetaspace_GetSpace() function.