Previous Topic: Socket Built-in Functions

Next Topic: Sample Code for TCP and UDP &SOCKET Verbs


System Variables

The following system variables are available within the TCP/IP &SOCKET verb set.

&ZTCP

Indicates the status of the socket interface

&ZTCPHSTA

Contains the value of the local host's IP address

&ZTCPHSTF

Contains the value of the local host's full name

&ZTCPHSTN

Contains the value of the local host's short name

&ZSOCID

Contains the socket ID of the last referenced socket

&ZSOCHNM

Contains the host name of the host referenced by some requests, such as &SOCKET GETHOSTBYADDR

&ZSOCFHNM

Contains the full host name of the host referenced by some requests, such as &SOCKET GETHOSTBYADDR

&ZSOCHADR

Contains the IP address of the host referenced by some requests, such as &SOCKET GETHOSTBYNAME

&ZSOCCID

Contains the socket ID used by the interface; for example, for IBM TCP/IP the internal socket number (a small number). Is used to identify an NCL socket or display produced by TCP/IP; for example, the NETSTAT command.

&ZSOCERRN

Contains the last ERRNO value returned from an &SOCKET request

&ZSOCPRT

Contains the port number of the last referenced socket

&ZSOCTYPE

Indicates the socket type of the last referenced socket

&ZSOCVERR

Returns vendor error information-format is specific to the TCP/IP interface in use

Note: For details of these verbs, see System Variables.