Tds.Protocol.Prelogin (Tds v2.3.0-rc.1) View Source

Prelogin message definition

See: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/60f56408-0188-4cd5-8b90-25c6f2423868

Link to this section Summary

Link to this section Types

Specs

packet_data() :: iodata()

Specs

response() :: {:ok, state()} | {:error, Exception.t() | atom(), state()}

Specs

state() :: Tds.Protocol.t()

Specs

t() :: %Tds.Protocol.Prelogin{
  encryption: <<_::8>>,
  fed_auth_required: term(),
  instance: boolean(),
  mars: boolean(),
  nonce_opt: term(),
  thread_id: term(),
  trace_id: term(),
  version: tuple()
}

Link to this section Functions

Specs

decode(iodata(), state()) ::
  {:encrypt, state()}
  | {:login, state()}
  | {:disconnect, Tds.Error.t(), state()}

Specs

encode(maybe_improper_list()) :: [binary(), ...]