Search documentation of megaco

# View Source megaco_edist_compress behaviour (megaco v4.6)

Megaco erlang dist compress behaviour.

The following functions should be exported from a `megaco_edist_compress` callback module:

# Summary

## Callbacks

decode(T, Version)

Decompress a megaco component.

encode(R, Version)

Compress a megaco component. The erlang dist encoder makes no assumption on the how or even if the component is compressed.

# Callbacks

Link to this callback

# decode(T, Version)

View Source

    -callback decode(T, Version) -> R
                        when
                            T :: term(),
                            Version :: megaco_encoder:protocol_version() | dynamic,
                            R ::
                                megaco_encoder:megaco_message() |
                                megaco_encoder:transaction() |
                                megaco_encoder:action_reply() |
                                megaco_encoder:action_request() |
                                megaco_encoder:command_request().

Decompress a megaco component.

Link to this callback

# encode(R, Version)

View Source

    -callback encode(R, Version) -> T
                        when
                            R ::
                                megaco_encoder:megaco_message() |
                                megaco_encoder:transaction() |
                                megaco_encoder:action_reply() |
                                megaco_encoder:action_request() |
                                megaco_encoder:command_request(),
                            Version :: megaco_encoder:protocol_version(),
                            T :: term().

Compress a megaco component. The erlang dist encoder makes no assumption on the how or even if the component is compressed.