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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:33:38+00:00 2026-05-22T11:33:38+00:00

I have 2 programs(client and server) which communicates using ipc. Basically client sends some

  • 0

I have 2 programs(client and server) which communicates using ipc. Basically client sends some data at the server and they work at the same computer. I want the client to wait for server process to start if it does not already started but not quite understand how to achieve this. I think of using 2 events(one which is created my client and one created by server) and wrap both calls to waits for these events in critical section. What you will suggest?

  • 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-22T11:33:38+00:00Added an answer on May 22, 2026 at 11:33 am

    How does the IPC work? I assume NamedPipes, but the idea is the same for me. I had to do something like that in the past and did roughly this:

    • Client starts, connects to IPC server (assuming NamedPipes. Shouldn’t matter)

    • Connection fails, client recovers by triggering a server start (this can be handled in lots of ways, from executing the server binary from a known location to using trigger started services)

    • Server starts and as one of the first thing claims the IPC address (or a global mutex if you like that one better). If multiple server processes are started from multiple clients, the first one wins and the others just die again.

    • Client retries after an appropriate time

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

Sidebar

Related Questions

I have client and server programs which now communicate via TCP. I'm trying out
I have socket program which sends a file from socket client to socket server
We have some COBOL programs in our financial applications which need to interact with
I have a tcp client - server implementation running in the same program, on
I have a client-server program. I'm sending data like this: private void Sender(string s,TcpClient
I have a C/C++ server process that needs to broadcast data to some number
I have made an client - server example using netty. I have defined handlers
I have a classic client/server (fat client and database) program written in Delphi 2006.
I have a client and server program (both in Obj-C) and I am transferring
I have an application which get copied and run on client machines. The program

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.