CAPL Script

SDRemoveConsumer

Syntax

void SD_RemoveConsumer(serviceConsumerRef * consumer)

Function

Removes a consumer endpoint from a service. You may call this to react to timeouts, or unannouncements from a real consumer, or to remove a simulated consumer endpoint.

Parameters

consumer Consumer endpoint.

Return Values

0: Success

1: The service does not allow dynamic endpoint changes

< 0: Other error, e.g. variable not initialized

SD_RemoveConsumer(newConsumer);

SD_RemoveProvider | SD_AddConsumer