Radius (elixir_radius v1.2.0)

Link to this section Summary

Functions

wrapper of gen_udp.open

recv and decode packet.

encode and send packet

encode and send request packet

Link to this section Functions

wrapper of gen_udp.open

Link to this function

recv(sk, secret)

recv and decode packet.

  sk :: socket
  secret :: string | fn({host,port}) -> string
Link to this function

send(sk, arg, packet)

This function is deprecated. Use send_reply/4 or send_request/3.

encode and send packet

  sk :: socket
  packet:: %Radius.Packet{}
Link to this function

send_reply(sk, arg, packet, request_authenticator)

@spec send_reply(
  socket :: port(),
  {host :: :inet.ip_address(), port :: :inet.port_number()},
  packet :: Radius.Packet.t(),
  request_authenticator :: binary()
) :: :ok | {:error, any()}

encode and send reply packet

Link to this function

send_request(sk, arg, packet)

@spec send_request(
  socket :: port(),
  {host :: :inet.ip_address(), port :: :inet.port_number()},
  packet :: Radius.Packet.t()
) :: :ok | {:error, any()}

encode and send request packet