ZCOM C I/F Library Routines

ZSET_RCVR (3X)

When outbound multiplexing is enabled for a terminal, an outbound receiver must be set up (using mode ZcOUTB_MLTPLX) by the multiplexing program, which will intercept data sent from other programs. The outbound multiplexing program is responsible for passing the correct data onto the physical terminal (using zsend with mode bit ZCOM_ZSEND_NOMX). For more information, see the section on Multiplexing in the Multiprotocol ACC Programmer’s Reference Guide.

The ZcADD_SHARED action is not supported for mode

ZcOUTB_MLTPLX (outbound multiplexer receiver).

RETURN VALUE Routine zset_rcvr returns 0 if successful. Otherwise, a non-zeroerror code is returned. See /opt/acc/include/zcom/zcomsys.h for the list of ZCOM error codes and their meanings.

EXAMPLE

#include

<zcom/zcomsys.h>

 

 

#include

<zcom/zcomcall.h>

 

 

int32

ierr;

 

 

int

action;

 

 

zaddr_type

zaddr;

 

 

uint32

mode;

 

 

zaddr_type

raddr;

 

 

if (ierr = zset_rcvr (action, &zaddr, mode, &raddr)) {

 

/* error return code */

 

}

 

 

 

else {

 

 

 

/* good return code */

 

}

 

 

FILES

 

 

 

 

/opt/acc/include/zcom/zcomsys.h

ZCOM system general include file,

 

 

 

containing data types, data structures,

 

 

 

constants, error codes, masks, etc. Note that

 

 

 

this must be the first include file before any

 

 

 

other ZCOM include files.

 

/opt/acc/include/zcom/zcomcall.h

ZCOM routine function prototypes

 

 

 

(requires ANSI C compilation).

SEE ALSO

zltmx(3X), zevent_rcvr(3X), zpeek(3X), zread(3X)

294

Chapter 4