View Source ExSTUN.Message.Type (ex_stun v0.1.0)
STUN Message Type
0 1
2 3 4 5 6 7 8 9 0 1 2 3 4 5
+--+--+-+-+-+-+-+-+-+-+-+-+-+-+
|M |M |M|M|M|C|M|M|M|C|M|M|M|M|
|11|10|9|8|7|1|6|5|4|0|3|2|1|0|
+--+--+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 3: Format of STUN Message Type Field
Link to this section Summary
Link to this section Types
@type t() :: %ExSTUN.Message.Type{ class: ExSTUN.Message.Class.t(), method: ExSTUN.Message.Method.t() }
Link to this section Functions
@spec from_value(non_neg_integer()) :: {:ok, t()} | {:error, :malformed_type}
Converts integer into a type.
@spec to_value(t()) :: non_neg_integer()
Converts type into an integer.