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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:25:40+00:00 2026-05-15T04:25:40+00:00

Context : Master server (Java, TCP) monitoring a list of hosted games (a different

  • 0

Context: Master server (Java, TCP) monitoring a list of hosted games (a different machine for the master server and for each hosted game server). Any user can host a game on his PC. Hosted games can last weeks or months.

Need: Knowing when hosted game servers are closed or no longer reachable.

Restriction 1: Can’t rely on hosted servers’ “gone offline update message”, since those messages may never arrive (power down, Internet link cut, etc.)

Restriction 2: I’m not sure about TCP’s built-in keep-alive, since it would mean a 24/7 open socket with each hosted server (correct me if I’m wrong)

Any thoughts?

  • 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-15T04:25:41+00:00Added an answer on May 15, 2026 at 4:25 am

    It sounds like you’re running into what’s known as the “Two-Army Problem,” the “Coordinated Attack Problem, or, as Andreas D noted, the Two General’s Problem which you’ve identified as your Restriction 1. The idea behind this problem is that two armies want to coordinate an attack on the enemy. They need to both attack at the same time, since each army knows that they will die if they attack on their own.

    The problem is this: How does an army know their messenger, who is carrying the time intended for the coordinated attack, has reached the other army successfully? Furthermore, how can the second army be sure that the first army knows that they received the message and plans to attack? It’s possible that any message between the armies doesn’t arrive successfully, and thus the armies can never be sure that they’re coordinated properly.

    Because of this, the simplest answer may be to simply do a ping on each running game at a scheduled interval, and also whenever a user requests a refresh. You can use this information to populate your master list.

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

Sidebar

Related Questions

Context Let`s say i have: In layout Site.Master: <div class=leftColumn> <asp:ContentPlaceHolder ID=MainContent runat=server />
Context: I'm working on master adding a simple feature. After a few minutes I
I have a master page with a bunch of menu like: <ul id=ulMenu runat=server>
We are writing an application that shall connect to different LDAP servers. For each
I'm implementing some rudimentary SQL Server monitoring to watch for excessive blocking. I have
I would like to have two .css files. One for each master\content page and
I am writing an application which consists of a master server database (most probably
<%@ Page Title= Language=C# MasterPageFile=~/Content/Master1.Master AutoEventWireup=true Inherits=System.Web.Mvc.ViewPage<List<TGF.class.abc>> %> <asp:Content ID=Content1 ContentPlaceHolderID=MainContent runat=server> <script type=text/javascript>
Situation: A custom Master Document content type inherits from Document The Master Document content
Can the elements of the Master Page be accessed from the Content Page? Lets

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.