TCPIP_MDNS_ServiceDeregister Function

C

MDNSD_ERR_CODE TCPIP_MDNS_ServiceDeregister(
    TCPIP_NET_HANDLE netH
);

Description

This function is used by end-user application to deregister DNS service discovery on a local network. When this gets invoked by end-user, DNS SD stack sends out Good-Bye packets to update all peer machines that service will no longer be present. All peer machines remove the corresponding entry from the browser list.

This is the last function that needs to be invoked by the end-user application to free the DNS SD stack for some other application.

Preconditions

TCPIP_MDNS_ServiceRegister must be invoked before this call.

Parameters

ParametersDescription
netHHandle of the network to be deregistered.

Returns

  • MDNSD_ERR_CODE - Returns an error code to indicate whether or not registration is successful:

    • MDNSD_SUCCESS - Returns on success of call.

    • MDNSD_ERR_INVAL - When the input parameters are invalid or if the function is invoked in an invalid state.

Remarks

None.