Class Packet

Hierarchy

  • Packet

Constructors

  • Parameters

    • command: number
    • arg0: number
    • arg1: number
    • length: number
    • check: number
    • magic: number
    • Optional data: Buffer

    Returns Packet

Properties

arg0: number
arg1: number
check: number
command: number
data?: Buffer
length: number
magic: number
A_AUTH: number = 0x48545541
A_CLSE: number = 0x45534c43
A_CNXN: number = 0x4e584e43
A_OKAY: number = 0x59414b4f
A_OPEN: number = 0x4e45504f
A_SYNC: number = 0x434e5953
A_WRTE: number = 0x45545257

Methods

  • Parameters

    • command: number
    • arg0: number
    • arg1: number
    • Optional data: Buffer

    Returns Buffer

Generated using TypeDoc