Using Socket Devices

Message Management
Message Delimiters
Read Command
WRITE Command
Socket Device Operation
Socket Deviceparameter Summary
Socket Device Examples

SOCKET devices are used to access and manipulate sockets. A SOCKET device can have from zero (0) to 64 associated sockets. At any time, only one socket from the collection can be the current socket. If there is no current socket, an attempt to READ from, or WRITE to the device, generates an error.

Sockets can be attached and detached from the collection of sockets associated with a device. Detached sockets belong to a pseudo-device called the "socketpool". A process can detach a socket from a device and later attach it to the same device or another device.

[Note]

The GT.M socket device interface does not have the ability to pass sockets between related or unrelated processes. Currently error trapping operates on a device, rather than on a socket.