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:

 

 

[label]

COMATTACH

{comfile}

 

Where:

label

Optional. A Program Execution Label.

comfile

Required. A previously defined and opened COMFILE definition.

Flags Affected: ZERO

Note the following:

  1. 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.

  2. 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

 



PL/B Language Reference Communications I/O Instructions COMCHECK