grizzly v0.6.0 Grizzly.Conn View Source

Link to this section Summary

Functions

Override the mode set in the config of the Conn.Server referenced by Conn conn

Link to this section Types

Link to this type

t() View Source
t() :: %Grizzly.Conn{
  conn: pid(),
  ip_address: :inet.ip_address(),
  mode: Grizzly.Conn.Config.mode()
}

Link to this section Functions

Link to this function

close(conn) View Source
close(t()) :: :ok

Link to this function

connected?(conn) View Source
connected?(t()) :: boolean()

Link to this function

override_mode(conn, mode) View Source
override_mode(t(), Grizzly.Conn.Config.mode()) :: t()

Override the mode set in the config of the Conn.Server referenced by Conn conn

Link to this function

send_command(conn, command, opts \\ []) View Source
send_command(t(), Grizzly.Command.t(), Keyword.t()) ::
  :ok | {:ok, any()} | {:error, any()}