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 7054247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:36:12+00:00 2026-05-28T03:36:12+00:00

My project is a job server that stores commands received by UDP in a

  • 0

My project is a job server that stores commands received by UDP in a queue. Every command has an interval value to be executed and an timeout value to be removed. These actions are controlled by a timer that must run independent of the server code, like 2 processes.

What’s the best way to make a server and a timer running without blocking each other? I am thinking about threads or asynchronous calls but I’m new to C++ and I don’t know how to apply these ideas in my code.

I’m using Visual C++ 2010 and ASIO from Boost 1.48.

Thanks!

  • 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-05-28T03:36:13+00:00Added an answer on May 28, 2026 at 3:36 am

    You can schedule an asynchronous (non-blocking) deadline_timer with Boost ASIO, as introduced here: http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio/tutorial/tuttimer2.html

    I assume you are using ASIO for your UDP communication already (since you mentioned both)–now it’s just a matter of scheduling the timers you need in your event loop, and everything should just work.

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

Sidebar

Related Questions

I am using Hudson CI server with a project (or job) that is hosted
I have added a new job in my hudson server which builds the project
i have a job portal website project in that i need to signup user
The project currently has a UIviewController called Dashboard that acts as the main view
I'm working on a project that has a couple of persistent processes that run
I have a project that I am working on at my job and I
I have a TeamCity job that builds my project and runs all the unit
Your job is to design a Project Plan class library which supports the tracking
My project consists of an app that links to two static libraries. Each of
The project that I am working on (Node.js) implies lots of operations with the

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.