/* register a Receive handler, typically the GciReceive function */
if(ACMRegisterReceiveHandler(&GciReceive) == GciNotOk) {
AdPrintErrorMessage();
return GciNotOk;
}
/* register a Receive handler, typically the GciReceive function */ if(ACMRegisterReceiveHandler(&GciReceive) == GciNotOk) { AdPrintErrorMessage(); return GciNotOk; } 请问在C程序中,注册处理函数句柄,这个功能怎么用?
/* Init the ACM module set the max timeout to one hour and the internal
time scale to micro seconds. */
if(ACMInit(&max_timeout, Gcius) == GciNotOk) {
AdPrintErrorMessage();
return GciNotOk;
}
/* register timeout handler typically the GciTimeout function */
if(ACMRegisterTimeoutHandler(&GciTimeout) == GciNotOk) {
AdPrintErrorMessage();
return GciNotOk;
}
/* register a Receive handler, typically the GciReceive function */
if(ACMRegisterReceiveHandler(&GciReceive) == GciNotOk) {
AdPrintErrorMessage();
return GciNotOk;
}