Chimera

Last-modified: 2008-01-31 (木) 12:33:49

UNIX用が基本だけれど、Windows版(VC++対応)もある。

UDPらしい。NATの心配はしなくても良いかも

Chimera communicates using UDP messages sent over BSD sockets.

以下APIについて。
ドキュメント中にある宣言は古いものらしいので、chimera.hからコピった。

ポートを選択、初期化

ChimeraState *chimera_init (int port)

ネットワークに参加する

void chimera_join (ChimeraState * state, ChimeraHost * bootstrap)

will sends the join message to the network that bootstrap is part of. If the bootstrap is NULL calling node is the first node in the network and it will start an overlay.
bootstrapがNULLであるなら、それはネットワークで最初のノードです。
そして、それはオーバーレイを開始するでしょう??
とりあえずNULLなChimeraHostのポインタを渡せばいいのかな?
ChimeraState内の(void*) chimeraをChimeraGlobal*にキャストして->bootstrapを得て渡す??