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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:17:00+00:00 2026-05-17T00:17:00+00:00

Couldn’t find anything about this topic. I have a Windows TCP C++ server application

  • 0

Couldn’t find anything about this topic.

I have a Windows TCP C++ server application which I want to update from time to time.

As you obviously understand this introduces a problem – the server should be 24/7 from the users’ perspective.
When updating, it is also desired to keep the current TCP connections with the users.

I’ve been thinking about a module-like system so for example the socket handling module would reside at “sockets.dll”, the server’s logic would reside in “logic.dll”.
Going for this approach seems like opening Pandora’s box;
– How will I make the actual “swapping” of the modules? Imagine that X worker threads keep sending data from one module to another – when swapping I’ll need a (light & fast) way to halt/pause them; signals maybe?
– Protocol version, or even functions signature might change when updating. How to handle that?
– Other problems such as unnoticed logic bugs.
– Who knows kind of other issues will arise.

Besides the above I have concerns like how do I update say 10 servers? I mean, they are all connected to each other, communicating.
If the update introduces a protocol modification it might cause huge problems, and in such case I’ll need to update the whole cluster (of servers) as a whole; shut-down the whole operation? That doesn’t sound right, at all! How do I do that? Which concept(s) am I missing here and how do I learn it/them?

Is there anything I can do about it?
What would you do? Have you done such a thing?
Do you know of any mechanism/article/project/source-example/etc’ that solves the problem?

Any valuable advice is highly appriciated!!

  • 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-17T00:17:00+00:00Added an answer on May 17, 2026 at 12:17 am

    In terms of protocol changes, I recommend you version your protocol. At the beginning of a connection between participating servers, have either the initiator or the receiver (doesn’t really matter which, I think) announce the newest version of the protocol it understands, and then the other side responds in kind. They fall back to the newest version they both understand.

    Yes, this means maintaining code for both protocol versions for a while, but you can retire the old code once you know all of your servers are updated and working with the new protocol.

    Assuming you have control over all possible client software, as well, you can do the same with your clients. Of course, this may entail maintaining old protocol code longer, if you don’t have control over when users upgrade.

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

Sidebar

Related Questions

I couldn't find anything similar to this anywhere. I have an array of pointers
Couldn't find anything about this on the internet, or stackoverflow?!? Basic Example: A great
I couldn't find this in the documentation. If I have a complex object in
I couldn't find anything on this, but probably its just because I don't know
couldn't find a similar topic but this may boil down to not knowing how
Couldn't find anything on this with a Google Search. Does anyone know how to
Couldn't find anything relevant in forums So ,Please help me with this code .I'm
I couldn't find enough resource about this subject and i need to learn how
Couldn't find any documentation about this: what is the order of execution of the
Couldn't find an answer to this one. I have a WPF ListView control that

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.