Skip to content

feat: Time Sync (Type=10) パケットの実装 #51

Description

@9c5s

概要

Time Sync (Type=10) パケットの送受信を実装する。

仕様 (TCNET V3.5.1B)

  • サイズ: 32バイト / ユニキャスト / レスポンス必須
  • ノード間のタイムシンクに使用
  • Step 0 (Initialize) → Step 1 (Response) のハンドシェイク
  • RemoteTimestamp (マイクロ秒精度)

パケット構造

Byte Size Type 説明
24 1 UInt8 Step (0=Initialize, 1=Response)
25 1 - RESERVED
26 2 UInt16LE Node Listener Port
28 4 UInt32LE Remote Timestamp (マイクロ秒)

実装タスク

  • TCNetTimeSyncPacket クラスの実装 (read/write)
  • TCNetPackets[10] へのマッピング登録
  • テスト

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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