Returns the IP address of the host referenced by some requests (for example, &SOCKET GETHOSTBYADDR).
&ZSOCHADR returns the IP address of the remote host for a TCP socket. For a UDP socket it returns the IP address last sent to or received from. &ZSOCHADR is also set by the host lookup functions &SOCKET GETHOSTBYNAME and GETHOSTBYADDR.
Example: &ZSOCHADR
&SOCKET RECEIVE_FROM ID=&SOCKID VARS=D* &WRITE DATA=RECEIVED FROM &ZSOCHADR
| Copyright © 2009 CA. All rights reserved. |
|