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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:27:31+00:00 2026-06-14T13:27:31+00:00

I have two clients A, B also I have a server S A sends

  • 0

I have two clients A, B

also I have a server S

A sends a request to the server S, due to this request the server S wants to inform client B that client A made a request.

the same can happen if B sends a request to server S but this time server S will inform A

is this possible with the client server model? I have managed to create a simple program where client A sends a request to server S and displays the server’s response. In this program server S listens to endless connections which means that I have something like this:

while(true){
   Socket userSocket = serverSocket.accept();
   new Connection(clientSocket);
   //where in the Connection class we manage the connection events
}

but I can’t understand how I can make the server ‘S’ a client inside the class “Connection” to the client that didn’t send the request. If I do the same process I usually do for any client (A or B) I get an exception which prints some IP address and I’m not sure which ones because I run everything locally.

thanks in advance

  • 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-14T13:27:33+00:00Added an answer on June 14, 2026 at 1:27 pm

    Practically speaking you can do what you said, which is to have S notify B that A has made a request or vice versa. Conceptually though this doesn’t mean that S is now a client of B. S is still a server it just happens to be sending B a message on its own rather than reacting to input from B.

    Think about S representing a chat server. If A sends a message to S and S forwards it to B, is S now a client of B or still a server?

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

Sidebar

Related Questions

I have two perforce clients (client-a, client-b) that each contain about 40 file specs.
I have two files client.php and server.php. The client file send a HTTP request
I have three solutions which build two clients and a server, and share many
I have two servlets. 1 serves as a primary server for my applet clients
I have a C structures in two different machines - server and clients. For
I have two swfs: application swf p2p client swf that allows to load data
i making a file transfer (server-client) application .. i have two listviewS to explore
Client side sends post request to php on server side. Php returns json to
I have a client-server program that uses sockets to transfer information in a stateful
I have two android devices that runs a gcm client app. I get the

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.