grizzly v0.4.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 type
extension()
View Source
extension()
View Source
extension() :: struct()
extension() :: struct()
Link to this opaque
t()
View Source
(opaque)
t()
View Source
(opaque)
t()
t()
Link to this section Functions
Link to this function
expected_delay_from_seconds(seconds)
View Source
expected_delay_from_seconds(seconds)
View Source
expected_delay_from_seconds(
Grizzly.Packet.HeaderExtension.ExpectedDelay.seconds()
) :: Grizzly.Packet.HeaderExtension.ExpectedDelay.t()
expected_delay_from_seconds( Grizzly.Packet.HeaderExtension.ExpectedDelay.seconds() ) :: Grizzly.Packet.HeaderExtension.ExpectedDelay.t()
Make an expected delay from seconds
Link to this function
from_binary(extensions) View Source
Try to parse a binary string into HeaderExtension.t()
Link to this function
get_expected_delay(extensions)
View Source
get_expected_delay(extensions)
View Source
get_expected_delay(t()) ::
{:ok, Grizzly.Packet.HeaderExtension.ExpectedDelay.seconds()} | nil
get_expected_delay(t()) :: {:ok, Grizzly.Packet.HeaderExtension.ExpectedDelay.seconds()} | nil
Given a header extension, get the expected delay in seconds