Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Net - <b>receive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RECEIVE

Command code
. Hex 15 - wait option
. Hex 95 - no-wait option

Fields required
. NCB_LSN
. NCB_BUFFER@
. NCB_LENGTH
. NCB_POST@     (if no-wait option is used)
. NCB_LANA_NUM  (number of the adapter you want to receive)

Field returned
. NCB_RETCODE
. NCB_LENGTH
. NCB_CMD_CPLT

Immediate return codes
. Hex 00    - Command has no immediate errors
. Hex 03    - Invalid command
. Hex 21    - Interface busy
. Hex 22    - Too many commands outstanding
. Hex 23    - Invalid number in NCB_LANA_NUM field
. Hex 40/4F - Unusual network condition
. Hex 50/FE - Adapter malfunction

Final return codes
. Hex 00    - Command complete
. Hex 03    - Invalid command
. Hex 05    - Command time-out
. Hex 06    - Message incomplete
. Hex 08    - Invalid local session number
. Hex 0A    - Session closed
. Hex 0B    - Command canceled
. Hex 18    - Session ended abnormally
. Hex 21    - Interface busy
. Hex 22    - Too many commands outstanding
. Hex 23    - Invalid number in NCB_LANA_NUM field
. Hex 40/4F - Unusual network condition
. Hex 50/FE - Adapter malfunction

Function
This command receives data from the specified session. If more than one
Receive command is outsanding, they are posted according to the following
hierarchy: Receive, Receive Any for a specified name, and Receive Any for any
name. Once the Commands are sorted according to hierarchy, all of the Receive
commands are processed in a first-in-first-out order. Time-out values for
RECEIVE are specified during a Call or Listen command and cannot be specified
during this command.

When a session is closed by either the local session Close command or by the
remote adapter closing the session, all pending NCBs for that session are
returned with a session closed status.

Note: A return code for hex 06 is posted in the NCB_RETCODE field if the
      receive buffer is not large enough for the message being sent. You can
      issue another Receive command to obtain the rest of the information
      before a time-out occurs.

See Also: Session support commands

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson