Giter Site home page Giter Site logo

cppnanomsg's Introduction

cppnanomsg: C++ binding for nanomsg library

To build:

  1. git clone [email protected]:nanomsg/cppnanomsg.git
  2. cd cppnanomsg
  3. mkdir build
  4. cd build
  5. cmake ..
  6. make
  7. make test
  8. sudo make install

Alternatively, given that the binding consists of a single header file, rather than installing it, you can avoid dependency and make nn.hpp part of your project.

cppnanomsg's People

Contributors

daniel-j-h avatar sustrik avatar wttw 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

cppnanomsg's Issues

atcp.c abort on Windows Platform

My application is running on Windows Platform and Linux Platform at the same time with Pair Mode, the windows platform is running with bind and linux with connect. After few hours, the application running on Windows abort with this error : (Unexpected action: state=2 source=1 action=5 (e:\workspace\nanomsg-1.1.4\src\transports\tcp\atcp.c:228).

build cppnanomsg on win10-64,gcc has a problem

try to build cppnanomsg in win10-64 + codeblocks + cmake/win + mingw-gcc
from: https://nuwen.net/mingw.html
nanomsg itself built well.
cmake/win success, but when i try to build cppnanomsg i get: compiler problem:

#include <nanomsg/nn.h>
the file is in: C:\nanomsg-1.1.4\src

||=== Build: all in cppnanomsg (compiler: GNU GCC Compiler) ===|
C:\cppnanomsg-master\nn.hpp|26|fatal error: nanomsg/nn.h: No such file or directory|
[CMakeFiles\binding.dir\build.make|62|CMakeFiles/binding.dir/binding.cpp.obj] Error 1|
[CMakeFiles\Makefile2|72|CMakeFiles/binding.dir/all] Error 2|
[C:\cppnanomsg-master\build\Makefile|140|all] Error 2|
||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Exception thrown on recv if survey timed out

Submitting this as an issue, otherwise it gets lost on the mailinglist:
http://www.freelists.org/post/nanomsg/cppnanomsg-throws-on-recv-if-survey-timed-out

  • recv throws except for EAGAIN
  • should also allow error codes such as ETIMEDOUT, EFSM

The wrapper is not usable for the survey pattern, as it returns EFSM right now (should be ETIMEDOUT, see: nanomsg/nanomsg#194).

There's only a single exception type. Catching it on deadline expiration may also catch a fatal error.
There's no way to distinguish between them.

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.