Per-client ISO Server Connection handler (TPKT + COTP + Session + Presentation + ACSE).
@spec loop(term(), :gen_tcp | :ssl, pid(), map()) :: :ok
@spec send_mms_payload(term(), :gen_tcp | :ssl, binary()) :: :ok | {:error, term()}