View Source Radius (Radius v2.0.1)
Link to this section Summary
Functions
wrapper of gen_udp.open
recv and decode packet.
send(sk, arg, packet)
deprecated
encode and send packet
encode and send reply 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{}
@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
@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