
Name: |
int grtStop (int start_chan, int end_chan) | |
Inputs: |
int start_chan |
|
|
int end_chan |
|
Outputs: |
None |
|
Returns: |
GRT_SUCCESS |
|
|
GRT_INVALID_START_ |
|
|
GRT_INVALID_END_CHANNEL |
|
|
GRT_NO_DISPATCHER |
|
|
GRT_ANOTHER_THREAD |
|
GRT_CONTROL_BUSY |
| |
GRT_UNLOCK_FAIL |
| |
GRT_LOCK_FAILED |
| |
GRT_PROCESS_ATTRIBUTE_ |
| |
GRT_CLOSE_FAIL |
| |
Includes: |
genra.h |
|
The grtStop( ) function stops the GRT API from managing the fax channels. This function stops control of the given range of channels by the current thread of execution. Allowing starting and stopping of the GRT allows a thread to add or delete channels that it controls dynamically.
#include "genra.h"
int status, chan = 1;
if (status = grtStop(chan, chan))
{
fprintf(stderr, "[%2d] grtStop failed\n", chan);
myErrorRoutine(status);
}
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation