Network Programming for Microsoft Windows (Microsoft Professional Series)

NCBDGRECV

This command receives a datagram directed to the local name associated with the ncb_num value. If ncb_num is 0xFF, this command receives datagrams directed to any local name. The local name can be either a group name or a unique name. If no receive datagram command is pending when a datagram is sent, the data is lost. If the supplied buffer is too small, an “incomplete error” message, NRC_INCOMP (0x06), occurs and the data is truncated to fill the buffer. Table 22-9 describes the characteristics of the NCBDGRECV command.

Table 22-9 NCBDGRECV

Field

In/Out

Required

ncb_command

In

X

ncb_retcode

Out

ncb_lsn

ncb_num

In

X

ncb_buffer

In

X

ncb_length

In/Out

X

ncb_callname

Out

ncb_name

ncb_rto

ncb_sto

ncb_post

In

ncb_lana_num

In

X

ncb_cmd_cplt

Out

ncb_event

In

Категории