Skip to content

feat: Control (Type=101) パケットの実装 #52

@9c5s

Description

@9c5s

概要

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

実装タスク

  • TCNetControlPacket クラスの実装 (read/write)
  • Control Pathのパーサー/ビルダー
  • TCNetPackets[101] へのマッピング登録
  • テスト

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions