Git Product home page Git Product logo

nanomsg-examples's People

Contributors

dysinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nanomsg-examples's Issues

Examples

I have taking the examples and wrapped them up into individual files and scripts, as documented for other's convenience. Use them if you'd like.

src.zip

libc.h: No such file or directory on Linux

I'm trying to compile pubsub.c in my Fedora box, but gcc complains with this:
pubsub.c:2:18: fatal error: libc.h: No such file or directory.

I solved this problem by replacing the libc.h include statement with below:
#include <semaphore.h>
#include <pthread.h>
#include <netdb.h>
#include <time.h>
#include <string.h>
and linked with -lpthread -lanl

PS: Someone post this in stackoverflow: http://stackoverflow.com/questions/21768542/libc-h-no-such-file-or-directory-when-compiling-nanomsg-pipeline-sample

d language bindings and version of your examples

Hi.

See here:
https://github.com/Laeeth/d-nanomsg

I hope it was okay to port your examples to D. I have included them in the repository for ease of use. Please let me know if you are not happy with this - and if you are, could you let me know the license that should apply so I can update the LICENSE file.

Also, I think on your website the reqrep is a duplicate of pipeline (it is correct in your repository).

Thanks.

Laeeth.

Explaining the difference in bind and connect

I think it's crucial to understand when to bind (one waiting on sth.) or when to connect (many awaiting sth.).

You actually made a pipeline example where the (one) PULL worker is bound and the (or multiple) PUSH workers are connect'ing to their sockets.
On the other side, the test program in nanomsg shows an example where the (one) PUSH worker is bound and the (or multiple) PULL workers are connect'ing to their sockets.

In a NNanomsg multi REQ/REP example (not just a MsgPack test) using nn_device (RAW REP, RAW REQ), I'm connecting REQ and also connect'ing the REP socket (to their respective bound RAW sockets).

Discovering this by learning in doing, I believe this is crucial to understand nanomsg!

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.