概要
Control (Type=101) パケットの送受信を実装する。レイヤー制御コマンドの送受信が可能になる。
仕様 (TCNET V3.5.1B)
- サイズ: 42 + DataSize バイト / ユニキャスト / レスポンス必須
- ASCII形式のControl Pathでレイヤー操作を指示
- Step 0 (Initialize) → Step 1 (Response) のハンドシェイク
Control Path例
layer/1/state=6; # Layer 1を停止
layer/5/source=1; # Layer AのソースをLayer 1に設定
layer/2/state=3; layer/2/resync; # Layer 2を再生+再同期
パケット構造
| Byte |
Size |
Type |
説明 |
| 24 |
1 |
UInt8 |
Step (0=Initialize, 1=Response) |
| 25 |
1 |
- |
RESERVED |
| 26 |
4 |
UInt32LE |
Data Size |
| 30 |
12 |
- |
RESERVED |
| 42 |
DataSize |
ASCII |
Control Path |
実装タスク
概要
Control (Type=101) パケットの送受信を実装する。レイヤー制御コマンドの送受信が可能になる。
仕様 (TCNET V3.5.1B)
Control Path例
パケット構造
実装タスク
TCNetControlPacketクラスの実装 (read/write)TCNetPackets[101]へのマッピング登録