sun.com | docs.sun.com |  | How To Buy | My Sun | Worldwide Sites |

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Program Interface | cmm_disconnect(3CMM)

- NAME
- SYNOPSIS
- DESCRIPTION
- RETURN VALUES
- ATTRIBUTES
- SEE ALSO

## NAME

> cmm_disconnect - close a connection between the current calling process and the `nhcmmd` daemon

## SYNOPSIS

>     cc [ flag... ] file...  lcgha_cmm  lrt

>     #include <cmm.h>

> `cmm_error_t cmm_disconnect( );`

## DESCRIPTION

> The cmm_disconnect() function closes the connection between the current calling process and the `nhcmmd` daemon. This frees the resources allocated to the client connection. Notifications are no longer managed by the library. If notifications were registered before this function was called, they are no longer sent.

> The connection is automatically re-established and resources reallocated when a function that needs the connection is called. However, the configuration of the notifications (callback function, filters, etc) is not recreated. You must reconfigure the notification registration.

> Note – If an application or service calls cmm_disconnect() when a cmm_notify_dispatch() call is being executed, the cmm_notify_dispatch() call is terminated.

## RETURN VALUES

> The cmm_disconnect() function returns one of the following values:

> `CMM_ENOTSUP`

>   Unexpected service error or no local `nhcmmd` is accessible.

> `CMM_ETIMEDOUT`

>   The call timeout expired before the action was completed.

> `CMM_OK`

>   Operation succeeds.

## ATTRIBUTES

> See `attributes`(5) for descriptions of the following attributes:

> ATTRIBUTE TYPE | ATTRIBUTE VALUE
> --- | ---
> Architecture | SPARC
> Availability | SUNWnhcmd
> Interface Stability | Evolving
> MT-Level | MT-Safe
> Cancel-Safety | Deferred-Cancel-Safe Asynchronous-Cancel-Unsafe

## SEE ALSO

> `Intro`(3CMM), `nhcmmd`(1M), `cmm_connect`(3CMM)

Netra HAS FS 2.1 | Go To Top | Last Changed September 2004

Company Info | Contact | Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.