FIX.Session.Protocol (fix_session v0.1.2)

Copy Markdown View Source

Pure state transitions for the FIX session protocol.

The caller must execute persistence actions before later send or delivery actions and must not install the returned state if persistence fails.

Summary

Types

action()

@type action() ::
  {:persist_inbound, pos_integer()}
  | {:send_new, FIX.Message.t()}
  | {:send_replay, FIX.Message.t()}
  | {:deliver, FIX.Message.t()}
  | {:disconnect, term()}

Functions

handle_message(message, state)

@spec handle_message(FIX.Message.t(), FIX.Session.State.t()) ::
  {FIX.Session.State.t(), [action()]}