This command closes a specified connected session. All pending receive commands for the session are terminated and return with the "session closed" error, 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 will return an error code when the session is closed. For any other receive command, each outstanding receive returns an error.
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 |