Ace.Socket (ace v0.19.0) View Source

Wrapper to normalise interactions with tcp or tls sockets.

NOTE: tls sockets use the :ssl module and are identified with :ssl atom

Link to this section Summary

Types

Wrapped listen socket.

t()

Wrapped tcp socket or tls socket.

Link to this section Types

Specs

listen_socket() :: {:ssl, :"ssl.ListenSocket"} | {:tcp, :inet.socket()}

Wrapped listen socket.

Specs

t() :: {:tcp, :inet.socket()} | {:ssl, :"ssl.SslSocket"}

Wrapped tcp socket or tls socket.

Link to this section Functions