Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

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 Interfacecmm_disconnect(3CMM)


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 TYPEATTRIBUTE VALUE
ArchitectureSPARC
AvailabilitySUNWnhcmd
Interface StabilityEvolving
MT-LevelMT-Safe
Cancel-SafetyDeferred-Cancel-Safe Asynchronous-Cancel-Unsafe

SEE ALSO

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


Netra HAS FS 2.1Go To TopLast Changed September 2004