Giter Site home page Giter Site logo

Server/client about fbzmq HOT 3 CLOSED

facebookarchive avatar facebookarchive commented on August 22, 2024
Server/client

from fbzmq.

Comments (3)

jstrizich avatar jstrizich commented on August 22, 2024

Hi Ernest,
This sounds like a reasonable approach. In response to your questions:

  1. fbzmq::NonblockingFlag has to do with reading sockets. Typically you would set this for a socket if you are polling it in an eventloop. If this is set and you read an empty socket, fbzmq will return an error, if not set, the recv will block (timing out or not depending on timeout parameter)
  2. If by "enveloping" you mean building multipart messages for something like router-dealer, no, fbzmq does not do any of that for you. we have apis to send and recv multipart messages though.

You may already have read this, but this doc does a nice job outlining router dealer: http://zeromq.org/tutorials:dealer-and-router

John

from fbzmq.

kreuzerkrieg avatar kreuzerkrieg commented on August 22, 2024

Thanks for reply.

  1. ok, looks like I dont need it at this moment.
  2. no, I mean adding identity frames on top of message, I almost sure I dont have to, since the zmq adds it in DEALER/ROUTER case
    So far, everything works as expected until I add second client to send requests. Will keep debugging it

from fbzmq.

saifhhasan avatar saifhhasan commented on August 22, 2024

@kreuzerkrieg => Regarding (2) you can refer to ZeroMQ Guide and it should tell you about behaviors as well as multiplexing multiple responses over one ROUTER socket.

fbzmq doesn't modify or introduce any communication pattern behavior between sockets.

from fbzmq.

Related Issues (12)

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.