ace v0.6.3 Ace.TCP.Endpoint

Starting the combination of socket, governors and server supervisor.

Endpoints are started with a fixed pool of governors under the Ace.TCP.Governor.Supervisor. The number of governors is equal to the maximum number of servers that can be accepting new connections.

Summary

Functions

Retrieve the port number for an endpoint

Start a new endpoint with the app behaviour

Functions

port(endpoint)

Retrieve the port number for an endpoint.

start_link(app, opts)

Start a new endpoint with the app behaviour.

## Options

  • :port - the port to run the server on. Defaults to port 8080.

  • :name - name to register the spawned endpoint under. The supported values are the same as GenServers.

  • :acceptors - The number of servers simultaneously waiting for a connection. Defaults to 50.