NCBHANGUP
This command closes a specified connected session. All pending receive commands for the session are terminated and return the “session closed” error message, NRC_SCLOSED (0x0A). If either send or chain send commands are outstanding, the hang up command delays until the command completes. This delay occurs whether the commands are transferring data or waiting for the remote side to issue a receive command. Additionally, if multiple outstanding NCBRECVANY commands exist, only one of them returns an error code when the session is closed. For any other receive command, each outstanding receive returns an error. Table 22-15 describes the characteristics of the NCBHANGUP command.
Field | In/Out | Required |
ncb_command | In | X |
ncb_retcode | Out | |
ncb_lsn | In | X |
ncb_num | ||
ncb_buffer | ||
ncb_length | ||
ncb_callname | ||
ncb_name | ||
ncb_rto | ||
ncb_sto | ||
ncb_post | In | |
ncb_lana_num | In | X |
ncb_cmd_cplt | Out | |
ncb_event | In |