grizzly v0.4.2 Grizzly.Client.DTLS View Source
A DTLS client to be used with Grizzly.
Link to this section Summary
Functions
Callback implementation for c:Grizzly.Client.close/1
.
Callback implementation for c:Grizzly.Client.connect/2
.
Callback implementation for c:Grizzly.Client.parse_response/1
.
Callback implementation for c:Grizzly.Client.send/3
.
Callback implementation for c:Grizzly.Client.send_heart_beat/2
.
Link to this section Types
Link to this type
dtls_socket_message()
View Source
dtls_socket_message()
View Source
dtls_socket_message() ::
{:ssl, :ssl.sslsocket(), [char()] | binary()}
| {:ssl_closed, :ssl.sslsocket()}
dtls_socket_message() :: {:ssl, :ssl.sslsocket(), [char()] | binary()} | {:ssl_closed, :ssl.sslsocket()}
Link to this section Functions
Link to this function
close(socket)
View Source
close(socket)
View Source
close(:ssl.sslsocket()) :: :ok
close(:ssl.sslsocket()) :: :ok
Callback implementation for c:Grizzly.Client.close/1
.
Link to this function
connect(server_ip, server_port)
View Source
connect(server_ip, server_port)
View Source
connect(:inet.socket_address(), :inet.port_number()) :: {:ok, :ssl.sslsocket()}
connect(:inet.socket_address(), :inet.port_number()) :: {:ok, :ssl.sslsocket()}
Callback implementation for c:Grizzly.Client.connect/2
.
Link to this function
parse_response(arg)
View Source
parse_response(arg)
View Source
parse_response(dtls_socket_message()) ::
{:ok, :heart_beat | Grizzly.Packet.t()} | {:error, :socket_closed}
parse_response(dtls_socket_message()) :: {:ok, :heart_beat | Grizzly.Packet.t()} | {:error, :socket_closed}
Callback implementation for c:Grizzly.Client.parse_response/1
.
Link to this function
send(socket, binary, opts) View Source
Callback implementation for c:Grizzly.Client.send/3
.
Link to this function
send_heart_beat(socket, opts)
View Source
send_heart_beat(socket, opts)
View Source
send_heart_beat(Grizzly.Client.socket(), keyword()) :: :ok
send_heart_beat(Grizzly.Client.socket(), keyword()) :: :ok
Callback implementation for c:Grizzly.Client.send_heart_beat/2
.
Link to this function