loqui v0.4.2 Loqui.Protocol.Compressor behaviour

A compressor

A compressor is concerned with compressing and decompressing iodata.

Summary

Callbacks

Compresses encoded data before sending it across the network

Decompresses data retrieved from the network

The name of the compressor

Types

t()
t() :: module

Callbacks

compress(iodata)
compress(iodata) :: iodata

Compresses encoded data before sending it across the network.

decompress(iodata)
decompress(iodata) :: iodata

Decompresses data retrieved from the network.

name()
name() :: String.t

The name of the compressor.

This name is sent during protocol negotiation between the client and the server.