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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:28:10+00:00 2026-06-14T21:28:10+00:00

I have a Client & Server c# program. The Client ( the one who’s

  • 0

I have a Client & Server c# program.
The Client ( the one who’s receiving connections).
The server ( is the one who’s connecting to the client ).

When the server is opened the customer(server)with his email and address appears in the Client window.
BUT when the client is closed and reopened then connection is loosed and the customer needs to close the server and open it again.

How can I maintain the connection without telling the customer to close and reopen the server?
I’m using TCP Connection and scokets.

  • 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-14T21:28:11+00:00Added an answer on June 14, 2026 at 9:28 pm

    A solution for this might be using lazy connection initialization with error handling for cases when the “client” is not online.

    You can create a wrapper for your connection, which handles the initialization, can check current connection state and wrap all your actions with error handling in case the connection could not be initialized.

    WCF is a good abstraction layer for this, but might be too heavyweight and has quite steep learning curve, especially its setup/config part in your project.

    Also, as was already mentioned, it is part of the client/server design that usually the client initializes the communication with some sort of login/subscription message, not the other way around – that would solve your problem here as well.

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

Sidebar

Related Questions

Exposition: I'm familiar with C/C++/Scheme & OpenGL. I have this client/server program written in
I'm writing a program & I want to have 2 SQL Server databases. One
I have a linux server program that waits for incoming connections from a client
I have a pretty simple question which perhaps someone familiar with Server/Client design &
i have client-server app, I'm managing connections with Threads and handlers inside app, but
I have a server and a client program (both running on the same machine).
I have a Client Server where client issues file operations to Server. Program runs
I have written a simple client server program in C under linux. I have
i have a java chat server & client, that works fine. I made a
i have a problem,one of my client need a program that will connect to

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.