FIX.Session.State (fix_session v0.1.2)

Copy Markdown View Source

Runtime state for a single FIX session.

next_in and next_out are the next expected inbound and next allocated outbound sequence numbers. They belong to the logical FIX session and must eventually be persisted across transport reconnects.

Summary

Types

status()

@type status() ::
  :disconnected | :connecting | :awaiting_logon | :logged_on | :awaiting_logout

t()

@type t() :: %FIX.Session.State{
  begin_string: binary(),
  buffer: binary(),
  heartbeat_interval: pos_integer(),
  last_received_at: term(),
  last_sent_at: term(),
  next_in: pos_integer(),
  next_out: pos_integer(),
  outstanding_resend: {pos_integer(), pos_integer()} | nil,
  pending_inbound: %{optional(pos_integer()) => FIX.Message.t()},
  pending_test_request: binary() | nil,
  sender_comp_id: binary() | nil,
  socket: term(),
  status: status(),
  target_comp_id: binary() | nil
}