Hitachi

OpenTP1 Version 7 分散トランザクション処理機能 OpenTP1 プロトコル TP1/NET/XMAP3編


付録C.1 メッセージ送受信インタフェース

〈この項の構成〉

(1) dc_mcf_contend − 継続問い合わせ応答の終了

(a) ANSI C,C++の形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_contend(long action,
                    char *resv01)
#include <dcmcf.h>
int  dc_mcf_contend(DCLONG action,
                    char *resv01)

(b) K&R版 Cの形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int dc_mcf_contend(action,
                   resv01)
long      action;
char      *resv01;
#include <dcmcf.h>
int dc_mcf_contend(action,
                   resv01)
DCLONG    action;
char      *resv01;

(2) dc_mcf_receive − メッセージの受信

(a) ANSI C,C++の形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_receive(long action,
                    long commform,
                    char *termnam,
                    char *resv01,
                    char *recvdata,
                    long *rdataleng, 
                    long inbufleng,
                    long *time)
#include <dcmcf.h>
int  dc_mcf_receive(DCLONG action,
                    DCLONG commform,
                    char *termnam,
                    char *resv01,
                    char *recvdata,
                    DCLONG *rdataleng,
                    DCLONG inbufleng,
                    DCLONG *time)

(b) K&R版 Cの形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_receive(action,
                    commform,
                    termnam,
                    resv01,
                    recvdata,
                    rdataleng,
                    inbufleng,
                    time)
long      action;
long      commform;
char      *termnam;
char      *resv01;
char      *recvdata;
long      *rdataleng;
long      inbufleng;
long      *time;
#include <dcmcf.h>
int  dc_mcf_receive(action,
                    commform,
                    termnam,
                    resv01,
                    recvdata,
                    rdataleng,
                    inbufleng,
                    time)
DCLONG    action;
DCLONG    commform;
char      *termnam;
char      *resv01;
char      *recvdata;
DCLONG    *rdataleng;
DCLONG    inbufleng;
DCLONG    *time;

(3) dc_mcf_reply − 応答メッセージの送信

(a) ANSI C,C++の形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_reply(long action,
                  long commform,
                  char *resv01,
                  char *mapname,
                  char *senddata,
                  long sdataleng,
                  char *nextap,
                  long opcd)
#include <dcmcf.h>
int  dc_mcf_reply(DCLONG action,
                  DCLONG commform,
                  char *resv01,
                  char *mapname,
                  char *senddata,
                  DCLONG sdataleng,
                  char *nextap,
                  DCLONG opcd)

(b) K&R版 Cの形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_reply(action,
                  commform,
                  resv01,
                  mapname,
                  senddata,
                  sdataleng,
                  nextap,
                  opcd)
long      action;
long      commform;
char      *resv01;
char      *mapname;
char      *senddata;
long      sdataleng;
char      *nextap;
long      opcd;
#include <dcmcf.h>
int  dc_mcf_reply(action,
                  commform,
                  resv01,
                  mapname,
                  senddata,
                  sdataleng,
                  nextap,
                  opcd)
DCLONG    action;
DCLONG    commform;
char      *resv01;
char      *mapname;
char      *senddata;
DCLONG    sdataleng;
char      *nextap;
DCLONG    opcd;

(4) dc_mcf_resend − メッセージの再送

(a) ANSI C,C++の形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_resend(long action,
                   long commform,
                   char *rtermnam, 
                   char *resv01,
                   long oseqid,
                   long orgseq, 
                   char *otermnam,
                   char *resv02,
                   char *resv03, 
                   char *resv04,
                   long opcd)
#include <dcmcf.h>
int  dc_mcf_resend(DCLONG action,
                   DCLONG commform,
                   char *rtermnam, 
                   char *resv01,
                   DCLONG oseqid,
                   DCLONG orgseq, 
                   char *otermnam,
                   char *resv02,
                   char *resv03, 
                   char *resv04,
                   DCLONG opcd)

(b) K&R版 Cの形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_resend(action,
                   commform,
                   rtermnam,
                   resv01,
                   oseqid,
                   orgseq,
                   otermnam,
                   resv02,
                   resv03,
                   resv04,
                   opcd)
long      action;
long      commform;
char      *rtermnam;
char      *resv01;
long      oseqid;
long      orgseq;
char      *otermnam;
char      *resv02;
char      *resv03;
char      *resv04;
long      opcd;
#include <dcmcf.h>
int  dc_mcf_resend(action,
                   commform,
                   rtermnam,
                   resv01,
                   oseqid,
                   orgseq,
                   otermnam,
                   resv02,
                   resv03,
                   resv04,
                   opcd)
DCLONG    action;
DCLONG    commform;
char      *rtermnam;
char      *resv01;
DCLONG    oseqid;
DCLONG    orgseq;
char      *otermnam;
char      *resv02;
char      *resv03;
char      *resv04;
DCLONG    opcd;

(5) dc_mcf_send − メッセージの送信

(a) ANSI C,C++の形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_send(long action,
                 long commform,
                 char *termnam,
                 char *resv01,
                 char *senddata,
                 long sdataleng,
                 char *resv02,
                 long opcd)
#include <dcmcf.h>
int  dc_mcf_send(DCLONG action,
                 DCLONG commform,
                 char *termnam,
                 char *resv01,
                 char *senddata,
                 DCLONG sdataleng,
                 char *resv02,
                 DCLONG opcd)

(b) K&R版 Cの形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_send(action,
                 commform,
                 termnam,
                 resv01,
                 senddata,
                 sdataleng,
                 resv02,
                 opcd)
long      action;
long      commform;
char      *termnam;
char      *resv01;
char      *senddata;
long      sdataleng;
char      *resv02;
long      opcd;
#include <dcmcf.h>
int  dc_mcf_send(action,
                 commform,
                 termnam,
                 resv01,
                 senddata,
                 sdataleng,
                 resv02,
                 opcd)
DCLONG    action;
DCLONG    commform;
char      *termnam;
char      *resv01;
char      *senddata;
DCLONG    sdataleng;
char      *resv02;
DCLONG    opcd;

(6) dc_mcf_tempget − 一時記憶データの受け取り

(a) ANSI C,C++の形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_tempget(long action,
                    char *getdata,
                    long gtempleng,
                    long *gdataleng,
                    char *resv01)
#include <dcmcf.h>
int  dc_mcf_tempget(DCLONG action,
                    char *getdata,
                    DCLONG gtempleng,
                    DCLONG *gdataleng,
                    char *resv01)

(b) K&R版 Cの形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_tempget(action,
                    getdata,
                    gtempleng,
                    gdataleng,
                    resv01)
long      action;
char      *getdata;
long      gtempleng;
long      *gdataleng;
char      *resv01;
#include <dcmcf.h>
int  dc_mcf_tempget(action,
                    getdata,
                    gtempleng,
                    gdataleng,
                    resv01)
DCLONG    action;
char      *getdata;
DCLONG    gtempleng;
DCLONG    *gdataleng;
char      *resv01;

(7) dc_mcf_tempput − 一時記憶データの更新

(a) ANSI C,C++の形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_tempput(long action,
                    char *putdata,
                    long pdataleng,
                    char *resv01)
#include <dcmcf.h>
int  dc_mcf_tempput(DCLONG action,
                    char *putdata,
                    DCLONG pdataleng,
                    char *resv01)

(b) K&R版 Cの形式

バージョン6以前

バージョン7

#include <dcmcf.h>
int  dc_mcf_tempput(action,
                    putdata,
                    pdataleng,
                    resv01)
long      action;
char      *putdata;
long      pdataleng;
char      *resv01;
#include <dcmcf.h>
int  dc_mcf_tempput(action,
                    putdata,
                    pdataleng,
                    resv01)
DCLONG    action;
char      *putdata;
DCLONG    pdataleng;
char      *resv01;