| |
| | |
| How can I change the timeout settings in the rpc client?
|
|
| | |
| Product: Distinct RPC for C, C++, Delphi | Topic: Timeout values | Last updated: 3/31/2008 | | | | Q.: How can I change the timeout settings in the rpc client?
| A.: The function call clnt_control() can be used to change timeout settings for the client objects.
There is one timeout for waiting for a reply, which is for both TCP and UDP clients. Function clnt_call() will return TIMEOUT error if it doesn't receive reply during this timeout value.
clnt_control(clnt, CLSET_TIMEOUT, pointer_to_timeval)
There is one resend timeout specifically for the UDP client, the UDP client may resend the request if it doesn't receive a reply during this timeout value.
clnt_control(clnt, CLSET_RETRY_TIMEOUT, ...)
|
If you did not find what you are looking for:
|
![]()
|
|