NCBHANGUP

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.

Table 22-15 NCBHANGUP

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
Network Programming for Microsoft Windows (Microsoft Professional Series)
ISBN: 0735605602
EAN: 2147483647
Year: 2001
Pages: 172
Authors: Anthony Jones

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