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
Link to this section Types
Link to this type
listen_socket()
View Source
listen_socket()
View Source
listen_socket() :: {:ssl, :"ssl.ListenSocket"} | {:tcp, :inet.socket()}
listen_socket() :: {:ssl, :"ssl.ListenSocket"} | {:tcp, :inet.socket()}
Wrapped listen socket.
Link to this type
t()
View Source
t()
View Source
t() :: {:tcp, :inet.socket()} | {:ssl, :"ssl.SslSocket"}
t() :: {:tcp, :inet.socket()} | {:ssl, :"ssl.SslSocket"}
Wrapped tcp socket or tls socket.
Link to this section Functions
Link to this function
accept(arg) View Source
Link to this function
negotiated_protocol(arg) View Source
Link to this function
port(arg) View Source
Link to this function
send(arg, message) View Source
Link to this function