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

  • Home
  • SEARCH
  • 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 8406755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:11:51+00:00 2026-06-09T23:11:51+00:00

I have a server.cpp running in background client.cpp will connect to server and perform

  • 0

I have a server.cpp running in background

client.cpp will connect to server and perform its task.

I code the server to listen for connection, while(1), and fork a process for client.

But I have a reminder feature which needs to email customer on a certain time. How do I run that feature together in this server, client cpp file? Should it be run in server or in client file, and in what way? I have tried to fork() at client.cpp but the issue is it cause my client to not work well.

Where should I add this code, and how do i make it work while performing listening to connection at server.cpp?

  • 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-09T23:11:53+00:00Added an answer on June 9, 2026 at 11:11 pm

    In server code:

    while(1) {
      check for update time and 
            fork updater if needed
      listen for clients
      fork client
    }
    

    Alternatively, the server can create a seperate thread with this code:

    while (1) {
       sleep for some time
       update customers
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client-server Silverlight application, which is use Socets. I have server appliaction
I have a server running openvpn for outgoing connections. However, once I start openvpn,
I have various files of extensions .cpp stored on the server. When user clicks
I have implemented ntlmv2 for lync-server login in an custom made lync client.The message
I have been running SQL Server 2005 Express Management Studio (SSMSE), and I now
I have 4 classes: Server.cpp Logger.cpp Util.cpp Crypto.cpp The class Server use the object
I'm working within a platform that I do not have server side access to
My server have default php version of 4, so when I run some script
I have a server in my network for which I want to DROP outbound
I have a server with 2 connections SOCKET which is connected with clients and

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.