Layer

Interface for classes that protocol layers.

Members

buffer :Buffer

Underlying buffer synced with the properties.
Type:
  • Buffer

length :number

Number of bytes occupied by the layer.
Type:
  • number

osi :OsiModelLayers

Respective protocol OSI layer.

Methods

toObject() → {Object}

Returns an object with all protcol fields without owning the underlying buffer. Useful to read all the data and use it without having to deal with binary representation.
Returns:
- All protocol fields
Type: 
Object