erps v0.2.0 Erps.Transport.Tcp View Source
implements a tcp transport strategy.
Link to this section Summary
Functions
Callback implementation for Erps.Transport.Api.accept/2
.
Callback implementation for Erps.Transport.Api.connect/3
.
upgrades the socket to active: true
. Does not request the client-side for an
upgrade to an authenticated or encrypted channel.
Callback implementation for Erps.Transport.Api.listen/2
.
Callback implementation for Erps.Transport.Api.send/2
, via :gen_tcp.send/2
upgrades the socket to active: true
. Does not upgrade to an authenticated
or encrypted channel.
Link to this section Functions
accept(sock, timeout) View Source
Callback implementation for Erps.Transport.Api.accept/2
.
connect(host, port, opts) View Source
Callback implementation for Erps.Transport.Api.connect/3
.
handshake(socket, opts)
View Source
handshake(:inet.socket(), keyword()) :: {:ok, Erps.Transport.Api.socket()}
handshake(:inet.socket(), keyword()) :: {:ok, Erps.Transport.Api.socket()}
upgrades the socket to active: true
. Does not request the client-side for an
upgrade to an authenticated or encrypted channel.
Callback implementation for Erps.Transport.Api.upgrade!/2
.
listen(port, opts) View Source
Callback implementation for Erps.Transport.Api.listen/2
.
send(sock, content) View Source
Callback implementation for Erps.Transport.Api.send/2
, via :gen_tcp.send/2
upgrade!(socket, opts)
View Source
upgrade!(:inet.socket(), keyword()) :: Erps.Transport.Api.socket()
upgrade!(:inet.socket(), keyword()) :: Erps.Transport.Api.socket()
upgrades the socket to active: true
. Does not upgrade to an authenticated
or encrypted channel.
Callback implementation for Erps.Transport.Api.upgrade!/2
.