restReqClientAddressGet (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

2.10.00


This function will get the address of the client that created the request.

 

Input:

req : SYSHANDLE

A handle to the request.

 

 

Output:

address : STRING

The socket address of the client connection in the same format as used by the advanced socket API.

 

 

Returns: INT

1


- Success

0


- Not supported

-1


- Invalid request

-2


- Request does not have a client address.

-21


- Unsupported address.

 

Declaration:

FUNCTION restReqClientAddressGet : INT;
VAR_INPUT
  req            : SYSHANDLE;
  address        : ACCESS STRING;
END_VAR;

 

 

Example:

Please see the "Examples - REST Example"