View Source Chorex.SocketProxy (Chorex v0.8.4)
Socket proxy
Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Types
@type config_map() :: %{ listen_port: integer(), remote_host: binary(), remote_port: integer(), session_token: Chorex.Types.session_token() }
@type state() :: %{ out_socket: nil | :inet.socket(), out_queue: :queue.queue(), in_listener: pid(), net_config: config_map(), session_token: Chorex.Types.session_token(), config: nil | map() }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec init(config_map()) :: {:ok, state()}
Callback implementation for GenServer.init/1
.
@spec send_until_empty(state()) :: :queue.queue()