
Name: |
int grtProcessInfoEvent (GRT_EVENT *event, GRT_INFO_DATA *info) | |
Inputs: |
GRT_EVENT *event |
|
|
GRT_INFO_DATA *info |
|
Outputs: |
GRT_INFO_DATA *info |
|
Returns: |
GRT_SUCCESS |
|
|
GRT_UNKNOWN_EVENT |
|
Includes: |
genra.h |
|
The grtProcessInfoEvent( ) function processes an info exchange event.
This function is a high-level function that provides the data that is associated with a GRT_INFO_EXCHANGE event to the user. The data is a structure of type GRT_INFO_DATA. The function returns GRT_SUCCESS if the event is a GRT_INFO_EXCHANGE event and info points to a valid GRT_INFO_DATA structure.
#include "genra.h" GRT_EVENT event; GRT_INFO_DATA info_data; int status, chan = 1; /* block for any event */ while ((status = grtGetEvent(chan, chan, &event))
== GRT_NO_EVENT) Sleep(1000L); if (event.event_type == GRT_INFO_EXCHANGE) { if (status = grtProcessInfoEvent(&event, &info_data)) { fprintf(stderr, "[%2d] grtProcessInfoEvent"
" failed: %d\n", event.chan, status); return -1; } printf("[%2d] INFO EXCHANGE Data:\n" "\tRCSID:\t\"%s\"\n\tNFS:\t\"%s\"", event.chan, info_data.rcsid, info_data.nsf); }
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation