Giter Club home page Giter Club logo

libzmtp's Introduction

libzmtp

An implementation of a ZMTP stack in C.

Ownership and Contributing

The contributors are listed in AUTHORS. This project uses the MPL v2 license, see LICENSE.

The contribution policy is the standard ZeroMQ C4.1 process. Please read this RFC if you have never contributed to a ZeroMQ project.

libzmtp's People

Contributors

c-rack avatar hintjens avatar hurtonm avatar keent avatar rpedde avatar trevorbernard 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

Watchers

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

libzmtp's Issues

Documentation: What parts of the zmq library does libzmtp support?

This library looks amazing and exactly what I am looking for?

  • Does this library support pub / sub?
  • Does this library require threading?
  • Does this library require a memory manager?

In general, what features are supported and what does the library require to operate?

Thanks a ton!

Problem: no test cases

Solution: add test case in each class and then run class selftests in zmtp_selftest.c

Problem: does not accept 'standard' endpoints

The transport is specified in the API rather than the endpoints. This is problematic for e.g. connecting a socket to multiple endpoints taken from a configuration file. The caller would have to parse the endpoints themselves to use the correct API call.

Solution: implement transport prefix in endpoints, and provide single 'bind' and 'connect' methods for all supported transports.

Problem: dealer class semantics are fuzzy

The usually pattern is _new/_connect/_destroy. However now the connect method acts as a constructor.

Solution: connect should take a self reference. _new should not take an fd. If we want to make things very simple, _new can take an endpoint as argument, and do the connect in one step (this would be fine for now).

Problem: cannot make proper test case

Since there's no server-side sockets, we cannot make proper test cases without resorting to either libzmq or raw TCP.

Solution: implement basic server-side support (bind and accept incoming connections).

XSUB "support"

we have some interest in an embedded client which would need to do both DEALER and XSUB (NB @zhivko)

it turns out the dealer socket works just fine with an XSUB publisher, see testxsub.c in https://github.com/mhaberler/libzmtp/commits/xpub

happy to take recommendations what to do with this

I see how I could do a ROUTER pthread for a dealer selftest
I do not see how I could do a XPUB pthread - unclear how to manage subscriptions

is it worth writing zmtp_router.c, zmtp_xsub.c classes?

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.