|
WebCFace 3.2.0
Web-based Communication Framework & Dashboard-like UI
|
Functions | |
| template<typename CharT > | |
| wcfStatus | wcfFuncRespondT (const typename CharType< CharT >::CHandle *handle, const typename CharType< CharT >::CVal *value) |
| wcfMultiVal | wcfValI (int value) |
| int型のwcfMultiValを構築 | |
| wcfMultiVal | wcfValD (double value) |
| double型のwcfMultiValを構築 | |
| wcfMultiVal | wcfValS (const char *value) |
| 文字列型のwcfMultiValを構築 | |
| wcfMultiValW | wcfValWI (int value) |
| int型のwcfMultiValWを構築 | |
| wcfMultiValW | wcfValWD (double value) |
| double型のwcfMultiValWを構築 | |
| wcfMultiValW | wcfValWS (const wchar_t *value) |
| 文字列型のwcfMultiValWを構築 (wstring) | |
| wcfStatus | wcfFuncRun (wcfClient *wcli, const char *member, const char *field, const wcfMultiVal *args, int arg_size, wcfMultiVal **result) |
| wcfStatus | wcfFuncRunW (wcfClient *wcli, const wchar_t *member, const wchar_t *field, const wcfMultiValW *args, int arg_size, wcfMultiValW **result) |
| wcfStatus | wcfFuncRunAsync (wcfClient *wcli, const char *member, const char *field, const wcfMultiVal *args, int arg_size, wcfPromise **async_res) |
| 関数を非同期で呼び出す | |
| wcfStatus | wcfFuncRunAsyncW (wcfClient *wcli, const wchar_t *member, const wchar_t *field, const wcfMultiValW *args, int arg_size, wcfPromise **async_res) |
| 関数を非同期で呼び出す (wstring) | |
| wcfStatus | wcfFuncGetResult (wcfPromise *async_res, wcfMultiVal **result) |
| 非同期で呼び出した関数の実行結果を取得 | |
| wcfStatus | wcfFuncWaitResult (wcfPromise *async_res, wcfMultiVal **result) |
| 非同期で呼び出した関数の実行完了まで待機し、結果を取得 | |
| wcfStatus | wcfFuncSet (wcfClient *wcli, const char *field, const wcfValType *arg_types, int arg_size, wcfValType return_type, wcfFuncCallback callback, void *user_data) |
| 関数を登録する | |
| wcfStatus | wcfFuncSetW (wcfClient *wcli, const wchar_t *field, const wcfValType *arg_types, int arg_size, wcfValType return_type, wcfFuncCallbackW callback, void *user_data) |
| 関数を登録する (wstring) | |
| wcfStatus | wcfFuncSetAsync (wcfClient *wcli, const char *field, const wcfValType *arg_types, int arg_size, wcfValType return_type, wcfFuncCallback callback, void *user_data) |
| 非同期に実行される関数を登録する | |
| wcfStatus | wcfFuncSetAsyncW (wcfClient *wcli, const wchar_t *field, const wcfValType *arg_types, int arg_size, wcfValType return_type, wcfFuncCallbackW callback, void *user_data) |
| 非同期に実行される関数を登録する (wstring) | |
| wcfStatus | wcfFuncListen (wcfClient *wcli, const char *field, const wcfValType *arg_types, int arg_size, wcfValType return_type) |
| 関数呼び出しの待受を開始する | |
| wcfStatus | wcfFuncListenW (wcfClient *wcli, const wchar_t *field, const wcfValType *arg_types, int arg_size, wcfValType return_type) |
| 関数呼び出しの待受を開始する (wstring) | |
| wcfStatus | wcfFuncFetchCall (wcfClient *wcli, const char *field, wcfFuncCallHandle **handle) |
| 関数が呼び出されたかどうかを確認 | |
| wcfStatus | wcfFuncFetchCallW (wcfClient *wcli, const wchar_t *field, wcfFuncCallHandleW **handle) |
| 関数が呼び出されたかどうかを確認 (wstring) | |
| wcfStatus | wcfFuncRespond (const wcfFuncCallHandle *handle, const wcfMultiVal *value) |
| 関数呼び出しに対して値を返す | |
| wcfStatus | wcfFuncRespondW (const wcfFuncCallHandleW *handle, const wcfMultiValW *value) |
| 関数呼び出しに対して値を返す (wstring) | |
| wcfStatus | wcfFuncReject (const wcfFuncCallHandle *handle, const char *message) |
| 関数呼び出しに対してエラーメッセージを返す | |
| wcfStatus | wcfFuncRejectW (const wcfFuncCallHandleW *handle, const wchar_t *message) |
| 関数呼び出しに対してエラーメッセージを返す (wstring) | |
| wcfStatus wcfFuncFetchCall | ( | wcfClient * | wcli, |
| const char * | field, | ||
| wcfFuncCallHandle ** | handle | ||
| ) |
関数が呼び出されたかどうかを確認
1回の関数呼び出しに対してfetchCallは1回だけhandlerを返す
呼び出されたらその引数と、値を返す用の関数が入ったhandlerを返す。 まだ呼び出されてなければnulloptを返す。
| wcli | Clientポインタ |
| field | 関数名 |
| handle | handleポインタを受け取る変数 |
| wcfStatus wcfFuncFetchCallW | ( | wcfClient * | wcli, |
| const wchar_t * | field, | ||
| wcfFuncCallHandleW ** | handle | ||
| ) |
| wcfStatus wcfFuncGetResult | ( | wcfPromise * | async_res, |
| wcfMultiVal ** | result | ||
| ) |
非同期で呼び出した関数の実行結果を取得
| async_res | 関数呼び出しに対応するPromise |
| result | 結果を格納する変数(wcfMultiVal*)へのポインタ (破棄するときには wcfDestroy() を使ってください) |
| wcfStatus wcfFuncListen | ( | wcfClient * | wcli, |
| const char * | field, | ||
| const wcfValType * | arg_types, | ||
| int | arg_size, | ||
| wcfValType | return_type | ||
| ) |
関数呼び出しの待受を開始する
| wcli | Clientポインタ |
| field | 関数名 |
| arg_types | 受け取る引数の型をwcfValTypeの配列で指定 |
| arg_size | 受け取る引数の個数 |
| return_type | 戻り値の型を指定 |
| wcfStatus wcfFuncListenW | ( | wcfClient * | wcli, |
| const wchar_t * | field, | ||
| const wcfValType * | arg_types, | ||
| int | arg_size, | ||
| wcfValType | return_type | ||
| ) |
| wcfStatus wcfFuncReject | ( | const wcfFuncCallHandle * | handle, |
| const char * | message | ||
| ) |
関数呼び出しに対してエラーメッセージを返す
エラーメッセージを返すとhandleはdeleteされ使えなくなる
| handle | 関数呼び出しに対応するhandle |
| message | 返すメッセージ (空文字列の代わりにNULLも可) |
| wcfStatus wcfFuncRejectW | ( | const wcfFuncCallHandleW * | handle, |
| const wchar_t * | message | ||
| ) |
| wcfStatus wcfFuncRespond | ( | const wcfFuncCallHandle * | handle, |
| const wcfMultiVal * | value | ||
| ) |
関数呼び出しに対して値を返す
値を返すとhandleはdeleteされ使えなくなる
| handle | 関数呼び出しに対応するhandle |
| value | 返す値 (ver1.9〜 NULLも可) |
| wcfStatus wcfFuncRespondT | ( | const typename CharType< CharT >::CHandle * | handle, |
| const typename CharType< CharT >::CVal * | value | ||
| ) |
| wcfStatus wcfFuncRespondW | ( | const wcfFuncCallHandleW * | handle, |
| const wcfMultiValW * | value | ||
| ) |
| wcfStatus wcfFuncRun | ( | wcfClient * | wcli, |
| const char * | member, | ||
| const char * | field, | ||
| const wcfMultiVal * | args, | ||
| int | arg_size, | ||
| wcfMultiVal ** | result | ||
| ) |
| wcfStatus wcfFuncRunAsync | ( | wcfClient * | wcli, |
| const char * | member, | ||
| const char * | field, | ||
| const wcfMultiVal * | args, | ||
| int | arg_size, | ||
| wcfPromise ** | async_res | ||
| ) |
関数を非同期で呼び出す
| wcli | Clientポインタ |
| member | memberの名前 (ver1.7〜:NULLまたは空文字列で自分自身を指す) |
| field | funcの名前 |
| args | 引数の配列 |
| arg_size | 引数の個数 |
| async_res | 結果を格納する変数(wcfPromise*)へのポインタ (破棄するときには wcfWaitResult() または wcfDestroy() を使ってください) |
| wcfStatus wcfFuncRunAsyncW | ( | wcfClient * | wcli, |
| const wchar_t * | member, | ||
| const wchar_t * | field, | ||
| const wcfMultiValW * | args, | ||
| int | arg_size, | ||
| wcfPromise ** | async_res | ||
| ) |
| wcfStatus wcfFuncRunW | ( | wcfClient * | wcli, |
| const wchar_t * | member, | ||
| const wchar_t * | field, | ||
| const wcfMultiValW * | args, | ||
| int | arg_size, | ||
| wcfMultiValW ** | result | ||
| ) |
| wcfStatus wcfFuncSet | ( | wcfClient * | wcli, |
| const char * | field, | ||
| const wcfValType * | arg_types, | ||
| int | arg_size, | ||
| wcfValType | return_type, | ||
| wcfFuncCallback | callback, | ||
| void * | user_data | ||
| ) |
関数を登録する
| wcli | Clientポインタ |
| field | 関数名 |
| arg_types | 受け取る引数の型をwcfValTypeの配列で指定 |
| arg_size | 受け取る引数の個数 |
| return_type | 戻り値の型を指定 |
| callback | 実行する関数: wcfFuncCallhandle* 型と void* 型の引数を1つずつ取り、何もreturnしない。 |
| user_data | 関数に引数として渡す追加のデータ callbackが呼び出されるときに第2引数にそのまま渡される。 |
| wcfStatus wcfFuncSetAsync | ( | wcfClient * | wcli, |
| const char * | field, | ||
| const wcfValType * | arg_types, | ||
| int | arg_size, | ||
| wcfValType | return_type, | ||
| wcfFuncCallback | callback, | ||
| void * | user_data | ||
| ) |
非同期に実行される関数を登録する
| wcfStatus wcfFuncSetAsyncW | ( | wcfClient * | wcli, |
| const wchar_t * | field, | ||
| const wcfValType * | arg_types, | ||
| int | arg_size, | ||
| wcfValType | return_type, | ||
| wcfFuncCallbackW | callback, | ||
| void * | user_data | ||
| ) |
| wcfStatus wcfFuncSetW | ( | wcfClient * | wcli, |
| const wchar_t * | field, | ||
| const wcfValType * | arg_types, | ||
| int | arg_size, | ||
| wcfValType | return_type, | ||
| wcfFuncCallbackW | callback, | ||
| void * | user_data | ||
| ) |
| wcfStatus wcfFuncWaitResult | ( | wcfPromise * | async_res, |
| wcfMultiVal ** | result | ||
| ) |
非同期で呼び出した関数の実行完了まで待機し、結果を取得
| async_res | 関数呼び出しに対応するPromise |
| result | 結果を格納する変数(wcfMultiVal*)へのポインタ (破棄するときには wcfDestroy() を使ってください) |
| wcfMultiVal wcfValD | ( | double | value | ) |
double型のwcfMultiValを構築
| wcfMultiVal wcfValI | ( | int | value | ) |
int型のwcfMultiValを構築
| wcfMultiVal wcfValS | ( | const char * | value | ) |
文字列型のwcfMultiValを構築
| wcfMultiValW wcfValWD | ( | double | value | ) |
double型のwcfMultiValWを構築
| wcfMultiValW wcfValWI | ( | int | value | ) |
int型のwcfMultiValWを構築
| wcfMultiValW wcfValWS | ( | const wchar_t * | value | ) |
文字列型のwcfMultiValWを構築 (wstring)