All Projects → zeromq → Exzmq

zeromq / Exzmq

Licence: mpl-2.0
ZeroMQ for Elixir

Programming Languages

elixir
2628 projects

exzmq

ZeroMQ 3.1 for Elixir

Build Status

Status

  • This project is a work in progress.
  • It is not ready for production use yet.
  • Contributions are welcome

Examples

defmodule ServerExample do

  def main do
    {:ok, socket} = Exzmq.server("tcp://127.0.0.1:5555")
    socket |> receive
  end
  
  defp receive(socket) do
    message = socket |> Exzmq.recv
    IO.puts "Received: #{inspect message}"
    socket |> receive
  end

end

defmodule ClientExample do

  def main do
    {:ok, socket} = Exzmq.client("tcp://127.0.0.1:5555")
    socket |> Exzmq.send("Hello")
  end

end	

Contribution

This projects uses the C4.1 process.

License

The project is released under the MPL 2.0 license http://mozilla.org/MPL/2.0/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].