以下は JE2BWM ほかが作成した翻訳 です。 原文は University of California より GFDL で配付されており、 この翻訳も GFDL に従います。
原文: Trickle message API   (翻訳対象の更新日付は 11:31 PM UTC, January 06 2006 です)。

トリクル・メッセージ API

boinc.gif
(英語のみ)

API (アプリケーション)

int boinc_send_trickle_up(char* variety, char* text)
は、指定された 種別(variety)訳注1 のトリクルメッセージを送ります。 成功すると、0 を返します。

int boinc_receive_trickle_down(char* buf, int len)
は、トリクルメッセージを受信します。 メッセージがあったときは、 true (つまり、ゼロでない値) を返します。 メッセージは送信された順に受取られます。

API (サーバ)

トリクルメッセージを扱うには、'trickle_handler'という デーモンプロセスを使って下さい。 以下の関数を提供する必要があります。
int handle_trickle(TRICKLE_UP&);
この関数の中からあるいは、ほかのどこからでも trickle-down メッセージを 以下のように送れます。
DB_TRICKLE_DOWN tdown;
// ... tdown オブジェクトに内容を入れます。 
tdown.insert();

(訳注1):種別 variety
詳細は不明ですが、プロジェクトごとに定義できるトリクルメッセージの種別のようです。

BOINCの訳のメインページに戻る | (原文のメインページに戻る)
 

最終更新時刻 00:52:00, 2006年08月12日(JST)
Copyright © 2008 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
Copyright © 2008 Komori Hitoshi(je2bwm at jarl.com). Japanese translation from English web pages on BOINC. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.