grizzly v0.8.5 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() ::
  {:ssl, :ssl.sslsocket(), [char()] | binary()}
  | {:ssl_closed, :ssl.sslsocket()}

Link to this section Functions

Callback implementation for c:Grizzly.Client.close/1.

Link to this function

connect(server_ip, server_port) View Source

Callback implementation for c:Grizzly.Client.connect/2.

Link to this function

parse_response(arg) View Source
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
send(Grizzly.Client.socket(), binary(), keyword()) :: :ok

Callback implementation for c:Grizzly.Client.send/3.

Link to this function

send_heart_beat(socket, opts) View Source
send_heart_beat(Grizzly.Client.socket(), keyword()) :: :ok

Callback implementation for c:Grizzly.Client.send_heart_beat/2.

Link to this function

user_lookup(atom, username, userstate) View Source