RFC 1006 TPKT TCP framing encoder and decoder.
@spec decode(binary()) :: {:ok, binary(), binary()} | {:more, non_neg_integer()} | {:error, term()}
@spec encode(binary()) :: binary()