Suspends processing of the current DFC command. A message AIM cannot process data through its clcomm object while servicing a DFC command. clSuspend() causes a control flow/function object that is servicing a DFC command to suspend processing and pass program flow control to the message AIM’s protocol object. This allows the application to send and receive data through the clcomm object and process that data through message frames and their associated control flow objects before sending a return on the DFC command. To resume processing the DFC command, call clRelease() from within a control flow other than the one that called clSuspend().
clSuspend() affects only the processing of the associated DFC command; therefore, other control flow objects can still send and receive DFC calls and replies.
clSuspend();
None.
servproc(... < insert args here > ... )
{
...
comm1.send(data);
// sent data. time to frame for an ACK or NAK
clSuspend();
// control returns here
if (bHaveAck)
{
rv = 1;
}
else
{
rv = -2; // indicate an error to SFM
}
...
return rv;
}
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |