!--a11y-->
RfcDispatch/RfcListen
で動作する RFC サーバプログラム
RFC
依頼が送信される場合に、 RFC サーバプログラムは、 RFC コール依頼を待たずに、 RfcListen を使用して RFC コール依頼を要求し、 RfcDispatch を発行することができます。メインプログラムを以下のように変更する必要があります。/*
インプログラム */rfc_handle =
RfcAccept (...); /* RFC 接続の受け入れ */if (rfc_handle == RFC_HANDLE_NULL) /* RFC
接続の受け入れをチェック */rfc_rc =
RfcInstallFunction ( ’ ABC ’ , abc_function , ...);if (rfc_rc != RFC_OK) /*
リターンコードをチェック */
/*
次の RFC 依頼を待機 */do
{
for (rfc_rc = RFC_RETRY; rfc_rc == RFC_RETRY;)
{
rfc_rc =
rfc_rc =
RfcDispatch (rfc_handle);}while(rfc_rc == RFC_OK);
RfcClose(...); /* RFC
接続を閉じる */
