Skip to content

N: SIO Command 'A' Accept

Bill Kendrick edited this page May 27, 2022 · 8 revisions

N: SIO Command ACCEPT ($41) ['A']

This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).

Description

Accepts a pending client connection to a TCP server, and assigns it to the IOCB for input and output.

Parameters

DCB Value
DDEVIC $71
DUNIT $01 - $04
DCOMND $41 'A'
DSTATS $00
DBUF NULL
DTIMLO $0F
DBYT 0
DAUX1 0
DAUX2 0

Examples

CC65

  OS.dcb.ddevic=0x71;
  OS.dcb.dunit=1;
  OS.dcb.dcomnd='A';
  OS.dcb.dstats=0x00;
  OS.dcb.dbuf=NULL;
  OS.dcb.dtimlo=0x0f;
  OS.dcb.dbyt=0;
  OS.dcb.daux=0;
  siov();

Returns

MNEMONIC Value
DERROR $90 (144) DEVICE ERROR (OPERATION INCOMPLETE) - no connection
SUCCES $01 SUCCESSFUL OPERATION

See Also

Put other related command links here.

Clone this wiki locally