Network Programming for Microsoft Windows (Microsoft Professional Series)

NCBSSTAT

This command retrieves the status of a session. When calling this command, ncb_buffer is set to a block of memory that is filled with a SESSION_HEADER structure followed by one or more SESSION_BUFFER structures. If the first byte of ncb_name is an asterisk (*), this command obtains the status for all sessions associated with all names in the local name table. If the supplied buffer is too small, the error NRC_INCOMP (0x06) is returned. If the buffer length is less than 4, the error returned is NRC_BUFLEN (0x01). Table 22-23 describes the characteristics of the NCBSSTAT command.

Table 22-23 NCBSSTAT

Field

In/Out

Required

ncb_command

In

X

ncb_retcode

Out

ncb_lsn

ncb_num

Out

ncb_buffer

In

X

ncb_length

In

X

ncb_callname

ncb_name

In

X

ncb_rto

ncb_sto

ncb_post

In

ncb_lana_num

In

X

ncb_cmd_cplt

Out

ncb_event

In

Категории