Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8167027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:04:32+00:00 2026-06-06T20:04:32+00:00

In C we have Sockets and descriptors, it is possible to just take one

  • 0

In C we have Sockets and descriptors, it is possible to just take one of these and hand them over to a Thread, this makes it possible that you can accept incoming connections and give the work to a Thread you like and the Thread can send by itself the response back.

My question is, how can I achieve this with ZeroMQ? With Request-Reply pattern it seems i cannot send and receive asynchronously, the responses have to be in sequence, my goal would be to have multiple clients to a single server, sending responses not in sequence.

I had a look at the Request Response pattern but the API clearly states that using that Socket with multiple Threads is a bad idea. Maybe i have missed something or ZeroMQ is more intelligent than i know of. If you need any further information just post a comment and i will do my best to give the information.

I had also a look at the provided examples: Code Examples

Here is the Socket description: ZMQ-Socket

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:04:34+00:00Added an answer on June 6, 2026 at 8:04 pm

    After days of searching, a friendly person in IRC in the zeromq channel provided help for me.

    An updated Link in case somebody is still looking for that. Should be persistant!
    http://zguide.zeromq.org/

    This example really works well, its easy to adapt, i have used boost threads with a threadpool.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sockets on Linux question I have a worker thread that is blocked on an
If I have two threads (Linux, NPTL), and I have one thread that is
I have a situation where a thread is selecting on sockets that are managed
I have the following program to open lot's of sockets, and hold them open
I have a python server that listens on a couple sockets. At startup, I
Unix/C question here. I have multiple sockets that I am trying to poll for
I have an asynchronous application executing several threads doing operations over sockets where operations
I have a PERL script that is creating a lot of sockets (around 700
I become use raw socket and i have this problem: bad file descriptor the
I have 2 sockets and I am using BufferedReader around it's InputStreams. What I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.