View Source erldns_decoder (erldns v4.2.0)

Safe response decoding, where exceptions will not result in a full system crash

Summary

Functions

Decode the binary data into its Erlang representation.

Functions

decode_message(Bin)

-spec decode_message(dns:message_bin()) ->
                        {dns:decode_error(), dns:message() | undefined, binary()} | dns:message().

Decode the binary data into its Erlang representation.

Note that if the erldns catch_exceptions property is set in the configuration, then this function should never throw an exception.