ZeroMQ for Elixir
Elixir
Switch branches/tags
Nothing to show
Clone or download
bluca Merge pull request #26 from protochron/update_travis
Problem: CI tests are using an outdated version of Elixir
Latest commit 93cb292 Oct 16, 2017

README.md

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/.