GPUI.Remote.Transport.TCP (gpui v0.2.0-rc.1)

Copy Markdown View Source

Length-prefixed ETF transport over TCP, with optional SSL.

Summary

Types

connect_option()

@type connect_option() ::
  {:host, String.t() | charlist()}
  | {:port, :inet.port_number()}
  | {:ssl, false | keyword()}
  | {:timeout, timeout()}

connection()

@opaque connection()

listen_option()

@type listen_option() :: {:port, :inet.port_number()} | {:ssl, false | keyword()}

listener()

@opaque listener()

Functions

controlling_process(connection, pid)

@spec controlling_process(connection(), pid()) :: :ok | {:error, term()}

port(listener)

@spec port(listener()) :: {:ok, :inet.port_number()} | {:error, term()}