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>send</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SEND

Command code
. Hex 14 - wait option
. Hex 94 - 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 send)

Field returned
. NCB_RETCODE
. 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 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 sends data using the session number indicated in the local
session number (NCB_LSN). The data is taken from the buffer, NCB_BUFFER@, for
the number of bytes, NCB_LENGTH. The buffer size may be up to 65,535 bytes in
length.

When a session is closed by the remote computer, all Send commands pending on
the closed session are returned with a "session closed" status. If a local
Hang Up command is issued with any pending Send commands, the Hang Up command
is delayed until the Send commands are completed or ended by error.

If a session ends abnormally, a "session ended abnormally" status is returned.
If the SEND time-out expires, the session immediately ends and a "command time
out" status is returned. Time-out values for the Send command are associated
with the session when CALL or LISTEN was issued and cannot be specified here.

If more than one SEND is pending, the data is transmitted in a first-in-
first-out (FIFO) order within a session.

If the Send command cannot be completed for any reason, the session will be
terminated abnormally to guarantee data integrity.

Send commands without corresponding Receive commands consume resources on the
adapter. It is not advisable to issue Send commands without corresponding
Receive commands.

See Also: Session support commands

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