COMATTACH
8.5A
The COMATTACH instruction performs a socket attach operation for any pending or queued primary socket attach request that is currently opened for a COMFILE. The instruction uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
comfile
Required. A previously defined and opened COMFILE definition.
Flags Affected: ZERO
Note the following:
One use for COMATTACH is to allow a COMFILE primary socket to remain open while processing multiple input socket attachment requests. An example usage would be for a PL/B Web Server program.
The ZERO flag is set when a COMATTACH operation successfully attaches a pending or queued socket attachment request for a primary socket.
See Also: COMOPEN, Communication I/O Instructions
![]() |