SOCK gate, SWITCH_FOR_ASYNC_IO function
The SWITCH_FOR_ASYNC_IO function switches from the required socket TCB so that an ASYNC I/O can be issued.
Input Parameters
- SOCKET_TOKEN
- Optional Parameter
- A token that is generated when a socket is created, and is used subsequently to identify the socket.
- ON_SOCKET_TCB
- A binary parameter that specifies whether the caller is already executing on a socket TCB
- Values of the parameter are:
- YES
- NO
Output Parameters
- REASON
- The following values are returned when RESPONSE is DISASTER:
- ABEND
- LOOP
- CHANGE_MODE_ERROR
- The following values are returned when RESPONSE is EXCEPTION:
- ALREADY_ON_SOCKET_TCB
- INCORRECT_TCB_SWITCH_SEQ
- IO_ERROR
- UNKNOWN_SESSION_TOKEN
- The following values are returned when RESPONSE is PURGED:
- TASK_CANCELLED