Contents

5. Transfer control — ChatWire kind 0x05

Transfer control (ChatWireTransferControl)

Control plane for an offered transfer (accept, reject, error, endpoint update). Wire: S2P1 + 0x05 + u32 LE + JSON UTF-8. Fields: Command, TransferId, TransferToken, Host, Port, ExpiresUtcTicks, ErrorCode. Source: ChatWireTransferControl / EncodeTransferControl.

Transfer control

Example (unencrypted)

Logical JSON (unencrypted):
  {
    "Command": "accept",
    "TransferId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "TransferToken": "tok-demo-001",
    "Host": "192.168.1.20",
    "Port": 18700,
    "ExpiresUtcTicks": 638000000000000000,
    "ErrorCode": ""
  }

Frame: S2P1 | 0x05 | u32 LE(json length) | JSON UTF-8