ace v0.9.2 Ace.TCP
Serve application from TCP endpoint.
To start a TCP endpoint run start_link/2
.
Link to this section Summary
Types
Reference to the endpoint
Option values used to start an endpoint
Configuration options used when starting and endpoint
Link to this section Types
Reference to the endpoint.
Link to this type
option()
option :: {:name, GenServer.name} | {:acceptors, non_neg_integer} | {:port, :inet.port_number}
Option values used to start an endpoint.
Configuration options used when starting and endpoint.
Link to this section Functions
Retrieve the port number for an endpoint.
Link to this function
start_link(arg, options)
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.