Previous PageTable Of Contents../index.htmlIndexNext Page

scx_tstcom( )

Description | Cautions | Example | Errors | See Also

Name:

int scx_tstcom(devh, tmo)

Inputs:

int devh

  SCX160 SCxbus Adapter device handle

 

short tmo

  time-out value

Returns:

0 on success
-1 on failure

Includes:

scxlib.h

Category:

Diagnostic

Mode:

synchronous

Top Of PageDescription

The scx_tstcom( ) function runs a communication test to verify that the SCX160 SCxbus Adapter can communicate with the host computer. Usually performed during Dialogic Service startup, the test sends a single byte to the SCX160 SCxbus Adapter and waits for a single-byte response. A return code of 0 indicates successful completion of the test.

Parameter

Description

devh:

Specifies the SCX160 SCxbus Adapter device handle.

tmo:

Specifies the maximum amount of time in seconds that the function will block while waiting for a response from the SCX160 SCxbus Adapter. If a response is not received within tmo seconds, an error is returned. A suggested setting is 5 seconds.

Top Of PageCautions

This function fails if:

NOTE:
Device configuration information is located in the appropriate hardware installation card.

Top Of PageExample

Top Of PageErrors

If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the error code, or you can use the ATDV_ERRMSGP( ) function to obtain a descriptive error message. The error codes returned by ATDV_LASTERR( ) function are listed in Chapter 7.  Errors.

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 February, 2002