grizzly v0.8.2 Grizzly.Packet.HeaderExtension View Source

Functions for working with the header extension in a Z/IP Packet.

Link to this section Summary

Functions

Make an expected delay from seconds

Try to parse a binary string into HeaderExtension.t()

Given a header extension, get the expected delay in seconds

Link to this section Types

Link to this section Functions

Make an expected delay from seconds

Link to this function

from_binary(extensions) View Source
from_binary(binary()) :: t()

Try to parse a binary string into HeaderExtension.t()

Link to this function

get_expected_delay(extensions) View Source
get_expected_delay(t()) ::
  {:ok, Grizzly.Packet.HeaderExtension.ExpectedDelay.seconds()} | nil

Given a header extension, get the expected delay in seconds