NCBHANGUP

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



Network Programming for Microsoft Windows
Linux Server Hacks, Volume Two: Tips & Tools for Connecting, Monitoring, and Troubleshooting
ISBN: 735615799
EAN: 2147483647
Year: 1998
Pages: 159

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net