View Source Radius (Radius v2.0.1)

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

recv and decode packet.

  sk :: socket
  secret :: string | fn({host,port}) -> string
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)

View Source
@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)

View Source
@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