Linux Server Hacks, Volume Two: Tips & Tools for Connecting, Monitoring, and Troubleshooting
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:
- Receive (NCBRECV)
- Receive-any for a specified name (NCBRECVANY)
- 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 |