OpenTP1 Version 7 Programming Reference C Language

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

dc_rpc_get_callers_address - Acquire the node address of a client UAP

Format

ANSI C, C++

#include <dcrpc.h>
void  dc_rpc_get_callers_address (DCULONG *node,
                                  DCLONG flags)

K&R C

#include <dcrpc.h>
void  dc_rpc_get_callers_address (node, flags)
DCULONG     *node;
DCLONG      flags;

Description

The function dc_rpc_get_callers_address() allows the server UAP to acquire the address of the node at which the client UAP process is working. Security checking for the client UAP can be performed using the address obtained by the function dc_rpc_get_callers_address().

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

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

Arguments whose value is set in the UAP

flags

Specify DCNOFLAGS.

Arguments whose value is returned from OpenTP1

node

The node address of the client UAP is returned.

Return values

There is no return value of the function dc_rpc_get_callers_address().

Note

When both the following conditions are true, the node address of the client UAP returned by the dc_rpc_get_callers_address() function might differ from the node address actually used by the client UAP during communication: