ace v0.9.2 Ace.Connection

Link to this section Summary

Types

Generic client connection from either tcp or tls socket

Details of a servers connection with a client

Connection transport type

Link to this section Types

Link to this type connection()
connection() :: {:tcp, :inet.socket} | {:tls, :ssl.socket}

Generic client connection from either tcp or tls socket.

Link to this type information()
information() :: %{peer: {:inet.ip_address, :inet.port_number}, transport: transport}

Details of a servers connection with a client.

Link to this type transport()
transport() :: :tcp | :tls

Connection transport type.

Options:

  • :tcp
  • :tls

Link to this section Functions

Link to this function accept(arg)
accept(connection) :: {:ok, connection}
Link to this function information(arg)
information(connection) :: information
Link to this function send(arg, message)
Link to this function set_active(arg, atom)