Socket Deviceparameter Summary

The following table provides a brief summary of deviceparameters for socket devices. For more information, refer to the sections describing the OPEN, USE, and CLOSE commands.

Error Processing Deviceparameters

DEVICEPARAMETER

COMMAND

COMMENT

EXCEPTION=expr

O/U/C

Controls device-specific error handling.

IOERROR=expr

O/U

If $LENGTH(expr)&("Tt"[$EXTRACT(expr)) then Error Trapping is enabled; otherwise the logic must rely on $DEVICE to recognize the handle errors.

Format Deviceparameters

DEVICEPARAMETER

COMMAND

COMMENT

[NO]DELIMITER=expr

O/U

Specifies socket delimiter(s).

[NO]FILTER=expr

U

Specifies character filtering for socket output.

LENGTH=expr, or

ZLENGTH=expr

U

Sets virtual page length for socket device.

IPCHSET=expr

O/U/C

Specifies input character set

OPCHSET=expr

O/U/C

Specifies output character set

[NO]WRAP, or

Z[NO]WRAP

O/U

Controls handling of records longer than the device width.

[Z]WIDTH=expr

U

Controls the maximum length of an output message.

ZBFSIZE=intexpr

O/U

Specifies receive buffer size.

Z[NO]FF=expr

O/U

Controls whether and what characters to send in response to a WRITE #.

ZIBFSIZE=intexpr

O

Specifies internal read buffer size to minimize calls to the underlying protocol stack.

Socket Establishment/Disconnect Deviceparameters

DEVICEPARAMETER

COMMAND

COMMENT

ATTACH=expr

O/U

Attaches the socket specified by expr to the device

CONNECT=expr

O/U

expr specifies protocol, and protocol specific information

DETACH=expr

U

Detaches the socket specified by expr from the device

SOCKET=expr

U/C

Makes the socket specified by expr the current socket

Z[NO]DELAY

O/U

Controls buffering of data packets by the network software according to the Nagle algorithm (ZDELAY) or disables it (NOZDELAY). ZDELAY is the default

ZLISTEN=expr

O/U

Similar to CONNECT but binds the socket for subsequent /LISTEN and /WAIT