Discussion:
the appc func has timeout set?
(too old to reply)
zhangych
2008-10-15 13:56:32 UTC
Permalink
When I recv a message from remote appc program,can i set a timeout check?
l***@attglobal.net
2008-10-15 14:49:02 UTC
Permalink
Post by zhangych
When I recv a message from remote appc program,can i set a timeout check?
Using the asynchronous APPC API you can have do a RECEIVE_AND_POST
call and then later do a DEALLOCATE(abend) or SEND_ERROR or TP_ENDED
and the RECEIVE_AND_POST will callback with primary_rc=AP_CANCELLED.
The time between doing the RECEIVE_AND_POST and a subsequent call
which cancels the pending RECEIVE_AND_POST is up to you.

See the RECEIVE_AND_POST section of the CS/AIX APPC Programmer's Guide
and look for the AP_CANCELLED description for more details.

Paul Landay

Loading...