OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

2.1.7 Acquiring node address of client UAP

In some cases, it is desirable to limit services offered to a client UAP. Since the server UAP recognizes client UAPs, it is possible to acquire the address of the node where the process of the client UAP is operating. The node address of the client UAP can be acquired by the function dc_rpc_get_callers_address() [CBLDCRPC('GETCLADR')].

The address returned by the function dc_rpc_get_callers_address() cannot be used for sending a response to a service or a response to an error.

The function dc_rpc_get_callers_address() must be called from a service function. Otherwise, subsequent processing is unpredictable.