ace v0.18.4 Ace.Socket 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

Link to this type

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

Wrapped listen socket.

Link to this type

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

Wrapped tcp socket or tls socket.

Link to this section Functions