Home > rainway-sdk > IRainwayHeader
IRainwayHeader interface
A header used by every datagram that goes over the transport from one Rainway peer to another.
Signature:
export interface IRainwayHeader
Properties
Property | Type | Description |
---|---|---|
magicNumber | number | The 4-byte "magic number" identifying this buffer as a Rainway datagram. This is always 0x79617752 ('Rway' as a FourCC). |
sourcePeerId | bigint | The hostname of the peer that sent the datagram. |
syncKey | number | A key value used to match up requests and responses. If you're sending a request, this should be a "new" key (++synckey). A response should have the same synckey value as the request. |
targetPeerId | bigint | The hostname of the peer that will receive the datagram. |