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

Command code
. Hex 34 - wait option
. Hex B4 - no-wait option

Fields required
. NCB_BUFFER@
. NCB_LENGTH
. NCB_NAME      (specify an * for all names)
. NCB_POST@     (if no-wait option is used)
. NCB_LANA_NUM  (number of the adapter for session status)

Field returned
. NCB_RETCODE
. NCB_LENGTH
. NCB_CMD_CPLT

Immediate return codes
. Hex 00    - Command has no immediate errors
. Hex 03    - Invalid command
. Hex 15    - Invalid name
. 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 01    - Invalid buffer length
. Hex 03    - Invalid command
. Hex 06    - Message incomplete
. Hex 19    - Name conflict detected
. 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 the status of all active sessions for the specified
name. This command optionally gives the status for all of the names in the
local name table if an * is in the first byte of the NCB_NAME field. The
minimum buffer length possible is 4 bytes.

Note: A return code of hex 06 is returned in the NCB_RETCODE field if the
      receive buffer is not large enough for the data being sent. The
      remaining data is lost at this point.

Data areas returned contain the following:

. Name number of sessions being reported - 1 byte
. Number of sessions with this name - 1 byte
. Number of Receive Datagram and Receive Broadcast Datagram commands
  outstanding - 1 byte
. Number of Receive Any commands outstanding - 1 byte
. Information returned about a session - 36 bytes per session
  . Local session number - 1 byte
  . State of session - 1 byte. This bytes is represented as follows:
    . hex 01  LISTEN pending
    . hex 02  CALL pending
    . hex 03  Session established
    . hex 04  HANG UP pending
    . hex 05  HANG UP complete
    . hex 06  Session ended abnormally
  . Local name - 16 byte
  . Remote name - 16 byte
  . Number of Receive commands outstanding - 1 byte
  . Number of Send and Chanin Send commands outstanding - 1 byte

See Also: Session support commands

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