Coder Social home page Coder Social logo

ofxzeromq's Introduction

ofxZeroMQ

ofxZmq alternavtive.

Notice

  • this addon is still buggy phase!
    • API will be change frequently.
    • if you find a bug, please post issue.
  • tested on
    • macOS 10.14.6 + Xcode11.2 + oF0.11.0 release
    • NOT developed/tested on windows. maybe it can't be build.
      • need to fill libs/zeromq/src/platform.hpp for windows env.

Features

  • basically, satoruhiga/ofxZmq compatible
  • support zmq multipart message
  • support auto reconnect
  • static polymorphic get value / set value

API

ofxZeroMQMessage

ofxZeroMQMultipartMessage

ofxZeroMQSubscriber

ofxZeroMQPublisher

Dependencies

Licenses for dependencies

libzmq

cppzmq

Update history

2020/01/28 ver 0.0.0_alpha

  • initial buggy version

License for this addon

  • MIT

Author

  • ISHII 2bit [ISHII Tsuubito Program Office, HagukiWoKamuToRingoKaraTiGaDeru]
  • i[at]2bit.jp

At the last

Please create a new issue if there is a problem.

And please throw a pull request if you have a cool idea!!

If you get happy with using this addon, and you're rich, please donation for support continuous development.

Bitcoin: 17AbtW73aydfYH3epP8T3UDmmDCcXSGcaf

ofxzeromq's People

Contributors

2bbb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ofxzeromq's Issues

Build failed on Win64

Thanks for the addon.

I tried to build the master on Windows Visual Stuidio (v143) but faild.
Just got:

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2466	cannot allocate an array of constant size 0	sub-example	...\of_v0112\addons\ofxZeroMQ\src\ofxZeroMQ.h	558	
Error	C2512	'ofxZeroMQ::Message': no appropriate default constructor available	sub-example	...\of_v0112\addons\ofxZeroMQ\src\ofxZeroMQ.h	558	

The fucntion below seems to need alternative.

template <typename ... types>
void addArguments(types && ... data) {
    Message messages[] = { convert(std::forward<types>(data)) ... };
    for(auto &&m : messages) add(std::move(m));
}

Could you give me a solution?

"Call to member function 'send' is ambiguous" error

Thank you for making this addon! It is cool to see how it was implemented.
I'm trying to use the zmq connection to send a message in protobuf format.
When I try the code in below, I get the error mentioned as the topic title.

// (in ofApp::update())
size_t pbuf_size = pbuf_blob.ByteSizeLong(); // pbuf_blob is a message object of protobuf
char * pbuf_buf = new char[pbuf_size];
pbuf_blob.SerializeToArray(pbuf_buf, pbuf_size);
pub.send(pbuf_buf, pbuf_size); // this is the line where I get an error "Call to member function 'send' is ambiguous

It would be great if you can give me any suggestion to solve the error problem about this.
Arigatogozaimasu!

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.