>>-RECEIVE--INTO(data-area)--LENGTH(data-ref)-------------------> >--OBJECT(data-ref)--+-----------------+------------------------> '-TOKEN(data-ref)-' .-WAIT--------------. >--+-------------------+--THREAD(cpsm-token)--------------------> +-DELAY(data-value)-+ '-IMMEDIATE---------' >--RESPONSE(data-ref)--REASON(data-ref)------------------------><
This command receives the output from completed asynchronous requests associated with the processing thread.
ADDRESS, GET, LISTEN, PERFORM OBJECT, PERFORM SET, REFRESH, SET
DELAY must specify a non-zero value. If you want to make sure that your program never enters a wait, use the IMMEDIATE option instead of DELAY.
The output returned can be:
After the operation is complete, this field is set to the actual length of the data returned in the INTO buffer. If the operation cannot complete because the buffer is not long enough, this field is set to the length that is required.
The following is a list of the RESPONSE values that can be returned by the RECEIVE command. The description of each RESPONSE includes a list of associated REASON values, if appropriate.