Hitachi

OpenTP1 Version 7 分散トランザクション処理機能 OpenTP1 クライアント使用の手引 TP1/Client/W,TP1/Client/P編


4.7.3 dc_clt_open_notification_s − 一方通知受信の開始

〈この項の構成〉

(1) 形式

(a) TP1/Client/Wの場合

■ _s付き関数

#include <dcvclt.h>
DCLONG dc_clt_open_notification_s(HWND hWnd,
                                  DCCLT_ID *ntfid,
                                  char *defpath,
                                  unsigned short port,
                                  DCLONG flags)

■ _s無し関数

#include <dcvclt.h>
DCLONG dc_clt_open_notification(unsigned short port,
                                DCLONG flags)

(b) TP1/Client/Pの場合

■ _s付き関数

#include <dcvclt.h>
DCLONG dc_clt_open_notification_s(HWND hWnd,
                                  DCCLT_ID CLTFAR *ntfid,
                                  char CLTFAR *defpath,
                                  unsigned short port,
                                  DCLONG flags)

■ _s無し関数

#include <dcvclt.h>
DCLONG dc_clt_open_notification(unsigned short port,
                                DCLONG flags)

(2) 機能

サーバからの一方通知受信機能を使用するための環境を作成します。

この関数は,dc_clt_close_notification_s関数と対で発行します。

(3) UAPで値を設定する引数

(4) 値が返される引数

(5) リターン値

リターン値

数値

(10進数)

意味

DC_OK

0

正常終了しました。

DCCLTER_INVALID_ARGS

-2501

引数に指定した値が誤っています。

DCCLTER_PROTO

-2502

dc_clt_open_notification関数がすでに実行されています。dc_clt_open_notification_s関数実行時は,このリターン値は返りません。

DCCLTER_FATAL

-2503

初期化に失敗しました。または,クライアント環境定義の指定に誤りがあります。

DCCLTER_NO_BUFS

-2504

必要なバッファが確保できませんでした。

DCCLTER_PORT_IN_USE

-2547

指定したポート番号は使用されています。

(6) 注意事項