Skip to content

Wire Format

WIPC uses a 9-byte header followed by the payload.

text
0       4      5         9        9+N
┌───────┬──────┬─────────┬─────────┐
│ WIPC  │ type │ length  │ payload │
└───────┴──────┴─────────┴─────────┘
  4 B     1 B     u32 LE     N B
OffsetSizeFieldDescription
04MAGICASCII WIPC
41TYPEMessage type
54LENGTHPayload size, u32 LE
9NPAYLOADOpaque bytes

Message types

ValueNamePurpose
0x00OPENChannel initialization
0x01CLOSEGraceful shutdown
0x02CALLRPC / request-response
0x03DATARaw data transfer

Payload encoding is intentionally unspecified. Use JSON, protobuf, raw bytes, or anything else that fits your protocol.