Popularity
3.0
Growing
Activity
6.2
-
14
3
4

Monthly Downloads: 320
Programming language: Elixir
License: MIT License
Tags: Protocols    

elixir_radius alternatives and similar packages

Based on the "Protocols" category.
Alternatively, view elixir_radius alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of elixir_radius or a related project?

Add another 'Protocols' Package

README

elixir-radius

RADIUS protocol encoding and decoding

example

#wrapper of gen_udp
{:ok,sk} = Radius.listen 1812

loop = fn(loop)->
  #secret can be a string or a function returning a string
  #{:ok,host,p} = Radius.recv sk,"123"
  {:ok,host,p} = Radius.recv sk,fn(_host) -> secret end

  IO.puts "From #{inspect host} : \n#{inspect p, pretty: true}"

  resp = %Radius.Packet{code: "Access-Reject", id: p.id, auth: p.auth, secret: p.secret}
  Radius.send sk,host,resp

  loop.(loop)
end
loop.(loop)