
Description | Cautions | Example | Errors | See Also
Name: |
int ms_unlisten(devh) | |
Inputs: |
int devh |
|
Returns: |
0 on success | |
|
-1 on failure | |
Includes: |
srllib.h | |
|
dtilib.h | |
|
msilib.h | |
Category: |
SCbus Routing | |
Mode: |
asynchronous | |
The ms_unlisten( ) function disconnects the receive of a station from an SCbus time slot.
Parameter |
Description |
devh: |
The station device handle. |
This function fails when:
#include "srllib.h"
#include "dxxxlib.h"
#include "dtilib.h"
int chdev /* Station device handle */
/* Open board 1, channel 1 */
if ((chdev = ms_open("msiB1C1",0)) == -1) {
printf("Cannot open channel msiB1C1. errno = %d", errno);
exit(1);
}
/* Disconnect receive of board 1, station 1 from all SCbus time slots */
if (ms_unlisten(chdev) == -1) {
printf("Error message = %s",ATDV_ERRMSGP(chdev));
exit(1);
}
When the function fails and returns a -1, the specific error code may be retrieved by calling the SRL standard attribute function ATDV_LASTERR( ) to obtain the error code. A more descriptive error message may be retrieved using the function ATDV_ERRMSGP( ).
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation