NLIでは,NLI関数とユーザプログラム間でのやり取りを行うために,データ構造体を定義しています。NLIで使用する構造体一覧を表4-1に示します。
表4-1 NLIで使用する構造体一覧
構造体名称 | 属性 | 要素名称 |
---|---|---|
struct netbuf※1 | unsigned int | maxlen |
unsigned int | len | |
char * | buf | |
struct n_info※2 | long | addr |
long | options | |
long | nsdu | |
long | ensdu | |
long | connect | |
long | discon | |
long | servtype | |
struct n_bind | struct netbuf | addr |
unsigned int | qlen | |
struct n_discon | struct netbuf | udata |
int | reason | |
int | sequence | |
struct n_call | struct netbuf | addr |
struct netbuf | opt | |
struct netbuf | udata | |
int | sequence | |
struct n_reset | unsigned char | ver |
unsigned char | cause | |
unsigned char | diag | |
unsigned char | cdgflg |