MLLP.TLSContract behaviour (mllp v0.9.4)

Link to this section Summary

Link to this section Callbacks

Specs

close(socket :: :ssl.sslsocket()) :: :ok
Link to this callback

connect( address, port, options, timeout )

Specs

connect(
  address :: :inet.socket_address() | :inet.hostname(),
  port :: :inet.port_number(),
  options :: [:ssl.tls_client_option()],
  timeout :: timeout()
) :: {:ok, :ssl.sslsocket()} | {:error, any()}
Link to this callback

recv(socket, length)

Specs

recv(socket :: :ssl.sslsocket(), length :: integer()) ::
  {:ok, any()} | {:error, any()}
Link to this callback

recv(socket, length, timeout)

Specs

recv(socket :: :ssl.sslsocket(), length :: integer(), timeout :: integer()) ::
  {:ok, any()} | {:error, any()}
Link to this callback

send(socket, packet)

Specs

send(socket :: :ssl.sslsocket(), packet :: iodata()) :: :ok | {:error, any()}