2010-11-29から1日間の記事一覧

C++側からTcl実行する

AODV* aodvagent; // set i to be the node id char command[256]; sprintf(command, "foreach aodvagent [Agent/AODV info instances]\ {\nif { [$aodvagent id] == %d} {\nset i $aodvagent}}\nset t $i\n", i); // <-- 真ん中に実行する文いれる Tcl& tcl…

ぴこーん

| \ __ / _ (m) _ピコーン |ミ| / `´ \ ('A`) ノヽノヽ くくIPヘッダの宛先変えればよくね? >なんか違うっぽいTCPヘッダ AOMDVヘッダ そのへんのSourceとDestination確認してみるよ

送信先ノードの動的変更

Connectorクラスのtarget_を変えてあげればいいと思いますよっとtarget_は target_ = (NsObject*)TclObject::lookup(str); みたいな感じで入れましょう。 strにはtcl側で使われてるノードの識別子 -> _o6とかそのへん 判断の仕方が不明