chroxy v0.7.0 Chroxy.ProxyServer

Transparent Proxy Server manages the relay of communications between and upstream and downstream tcp connections. Support customer extensions through callbacks of Hook modules which implement the Chroxy.ProxyServer.Hook behaviour.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Spawns a process to manage connections between upstream and downstream connections.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_link(args)

Spawns a process to manage connections between upstream and downstream connections.

Keyword args:

  • :upstream_socket - :gen_tcp connection delegated from the Chroxy.ProxyListener
  • :dyn_hook - [optional] function to obtain a module which implements Chroxy.ProxyServer.Hook
  • :downstream_host - [optional] downstream host
  • :downstream_port - [optional] downstream port