NCBRECV

This command receives data from the specified session name. If more than one command capable of receiving data is pending, they are processed in the following order:

  1. Receive (NCBRECV)
  2. Receive-any for a specified name (NCBRECVANY)
  3. Receive-any for any name (NCBRECVANY)

All commands with the same precedence are processed in first-in, first-out order. If the buffer passed is not large enough to hold the data, the error NRC_INCOMP (0x06) is returned. If this occurs, issue another receive command with a larger buffer unless the send command was issued with either a timeout that expired or a no-ack—in which case the data is lost. The ncb_length field is set to the amount of data actually read on return.

Field In/Out Required
ncb_command IN X
ncb_retcode OUT
ncb_lsn IN X
ncb_num IN X
ncb_buffer IN X
ncb_length IN/OUT X
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