ExIEC61850.Mms.IsoClient.IsoClientConnection (ex_iec61850 v0.1.0)

Copy Markdown View Source

ISO Client Connection layer (TCP/TLS + TPKT + COTP + Session + Presentation + ACSE).

Summary

Types

t()

@type t() :: %ExIEC61850.Mms.IsoClient.IsoClientConnection{
  buffer: term(),
  cotp_buffer: term(),
  params: term(),
  socket: term(),
  transport: term()
}

Functions

close(iso_client_connection)

@spec close(t()) :: :ok

connect(params, mms_init_req, timeout \\ 10000)

@spec connect(
  ExIEC61850.Mms.IsoCommon.IsoConnectionParameters.t(),
  binary(),
  non_neg_integer()
) ::
  {:ok, t(), binary()} | {:error, term()}

feed_bytes(iso, data)

@spec feed_bytes(t(), binary()) :: {t(), [binary()]}

send_mms_payload(iso_client_connection, mms_pdu)

@spec send_mms_payload(t(), binary()) :: :ok | {:error, term()}