NIO CommKit Host Interface Installation and System Administration Manual

DKMGR(3X) DKMGR(3X)
E-55 CommKit Host Interface, Release 4.0
NAME
dkmgr – establish an AT&T data switch server
SYNOPSIS
#include <stdio.h>
#include <dkit/dk.h>
#include <dkit/dkmgr.h>
struct mgrmsg *dkmgr(srvname)
char * srvname;
struct mgrmsg *dknmgr(srvname, intf)
char * srvname;
int intf;
struct mgrmsg *dknnmgr(srvname, intf, srvchan)
char * srvname;
int intf, srvchan;
void dkmgrack(chan, windowsz)
int chan;
short windowsz;
void dkmgrnak(chan, error, windowsz)
int chan, error;
short windowsz;
int dkinit(fd, mode)
int fd, mode;
int dkcktcfg(srvfd, chan, windowsize, protocol)
int srvfd, chan;
short windowsize, protocol;
int dk_chk_idle(intf, chan)
int intf, chan;
int dk_reset_ckt(intf, chan)
int intf, chan;
extern FILE *logf;
extern int loglvl;
extern short recv_win;
extern short nurpblks;
extern short dk_protocol;
extern int dksrvfd;
extern int dksrvfatal;
extern struct stat *ctl_stat;
DESCRIPTION
This set of functions and external variables may be used to establish services on an AT&T Data Switch,
receive call requests, initialize and configure circuits, and accept or reject the call request. A program that
calls these functions requires some initialization as well as knowledge of the external variables. See the
section EXTERN VARIABLES below.
dkmgr, dknmgr and dknnmgr set up the calling process as a data switch server named srvname and receive
call setup requests. The hardware interface chosen is zero for dkmgr and intf for dknmgr and dknnmgr. The
hardware channel chosen is the lowest free channel for dkmgr and dknmgr and srvchan for dknnmgr. These
routines return a pointer to an incoming service request of the following format: