6.3.2 Getting an Asynchronous Reply

A reply to a service call can be received asynchronously by calling the tpgetrply() function. The tpgetrply() function dequeues a reply to a request previously sent by tpcall().

Use the following signature to call the tpgetrply() function:

int
tpgetrply(int *cd, char **data, long *len, long flags)

The following table describes the arguments to the tpgetrply() function.

By default, the function waits for the arrival of the reply that corresponds to the value referenced by the cd parameter. During this waiting interval, a blocking timeout may occur. A time-out occurs when tpgetrply() fails and tperrno(5) is set to TPETIME (unless the flags parameter is set to TPNOTIME).