Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LevinPacket

Provides a representation of a Levin Packet on a network

Hierarchy

  • LevinPacket

Index

Constructors

constructor

Accessors

command

flags

  • get flags(): number
  • set flags(value: number): void

payload

return_code

  • get return_code(): number
  • set return_code(value: number): void

return_data

  • get return_data(): boolean
  • set return_data(value: boolean): void
  • Whether or not we expect a response to this request

    Returns boolean

  • Whether or not we expect a response to this request

    Parameters

    • value: boolean

    Returns void

signature

  • get signature(): string
  • set signature(value: string): void

version

  • get version(): number
  • set version(value: number): void

Methods

toBuffer

  • toBuffer(): Buffer
  • Provides the Buffer representation of the Levin Packet

    Returns Buffer

    the buffer representation of the object

toString

  • toString(): string
  • Provides the hexadecimal (blob) representation of the Levin Packet

    Returns string

    the hexadecimal (blob) representation of the object

Static from

  • Creates a new instance of a Levin Packet from the supplied data

    Parameters

    • data: Reader | Buffer | string

      the raw data that came in over the wire

    Returns LevinPacket

    a new instance of the object

Generated using TypeDoc