Code Monkey home page Code Monkey logo

rbnng's Introduction

RBNNG - nng for ruby

nng is a lightweight, broker-less messaging library. This gem provides an API to interact with nng using a Ruby C extension.

Installing

  1. Install nng (consult your distro). If using Homebrew

    brew install nng
    
  2. If nng is installed outside of $PATH, you can specify its location.

    e.g. for homebrew on linux

    gem install nng -- \
       --with-nng-lib=$HOME/.linuxbrew/Cellar/nng/1.5.2/lib \
       --with-nng-include=$HOME/.linuxbrew/Cellar/nng/1.5.2/include
    

    Use gem install nng --pre if trying to install an unreleased version.

Examples

Examples can be found under the demos directory.

Todo

  • General

    • Better error handling
    • Add configuration options
  • Protocols

    • Req0/Rep0
    • Pair0/Pair1
    • Pub0/Sub0
    • Bus0
    • Survey0
    • Pipeline0

rbnng's People

Contributors

adibsaad avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

paddor

rbnng's Issues

Integration into event loops

This is an exciting gem. Thank you. I wonder if it's possible to integrate it into event loops like Async or EventMachine. For the latter, I think the NNG_OPT_RECVFD has to be read out first.

Any advice?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.