Previous PageTable Of Contents../index.htmlIndexNext Page

dt_close( )

Description | Cautions | Example | Errors | See Also

Name:

int dt_close(devh)

Inputs:

int devh

  Digital Network Interface logical board or Digital Network Interface logical time slot device handle

Returns:

0 on success
-1 on failure

Includes:

srllib.h
dtilib.h

Category:

Resource Management

Mode:

synchronous

Top Of PageDescription

The dt_close( ) function closes Digital Network Interface devices opened previously by a call to dt_open( ). The specified device may be either a Digital Network Interface logical board or time slot device. The dt_close( ) function releases the handle and breaks the link between the calling process and the device.

Parameter

Description

devh:

Specifies the valid Digital Network Interface logical board or Digital Network Interface logical time slot device handle returned by a call to dt_open( )

Top Of PageCautions

  1. This function will fail if the device handle is invalid.
  2. The dt_close( ) function affects only the link between the calling process and the device. Other processes are unaffected by dt_close( ).
  3. If event notification is active for the device to be closed, call the SRL sr_dishdlr( ) function prior to calling dt_close( ).
  4. A call to dt_close( ) does not affect the configuration of the device.
  5. Devices should never be closed using the close( ) function.

Top Of PageExample

Top Of PageErrors

If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the following error value:

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated November, 2001