NIO CommKit Host Interface Installation and System Administration Manual
DKLEVELD(3X) DKLEVELD(3X))
E-54 CommKit Host Interface, Release 4.0
isdkleveld tests whether the top message at the Stream-head associated with fd contains a URP Level–D
control code message. If an M_PROTO message containing a URP Level–D control code is found, the control
code is returned. Zero is returned if there is no message at the Stream-head or if the message does not contain
a URP Level–D code.
isdkeof tests whether the top message at the Stream-head associated with fd contains a URP Level–D control
code message with an EOF code value. If an M_PROTO message containing a URP Level–D control code is
found and the control code is an EOF code, a non-zero value is returned. Zero is returned if there is no message
at the Stream-head or if the message does not contain a URP Level–D EOF code.
isdkclosed tests whether the circuit associated with fd has been disconnected. A non-zero value is returned if
the circuit has been disconnected and a zero value is returned if the circuit appears to be still active.
EXAMPLE
The code fragments below illustrate how to use the dkleveld routine to transmit the string ’abc’ sandwiched
between URP Level-D BREAK control codes on the circuit associated with fd:
#include <sys/types.h>
#include <dkit/rdfp.h>
#include <dkit/dk_urp.h>
dk_lvld_tmsg[] = {
dkDmkctl(URPdBREAK),
dkDmkdata(’a’),
dkDmkdata(’b’),
dkDmkdata(’c’),
dkDmkctl(URPdBREAK)
};
ret = dkleveld(fd, msg, sizeof(msg));
FILES
/usr/lib/libdk.so host interface subroutine library
SEE ALSO
dkhs(7)