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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:39:30+00:00 2026-05-17T16:39:30+00:00

I have a Server communicating with multiple clients through a socket connection. In my

  • 0

I have a Server communicating with multiple clients through a socket connection. In my original program, messages were sent and recieved using a PrintWriter and a BufferedReader. When I checked to see if any new messages had been received, the BufferedReader would have them all stored and I could read them one by one.

I am now trying to do the same thing, but sending across objects rather than text with an ObjectOutputStream and an ObjectInputStream. However, when the the client or server receives more than one message before checking for new messages, it only processes one of them.

Is there a way that I can have a method similar to BufferedReader.readNext(), but for an ObjectInputStream? Is there a better way to send objects across? Or is there be a way to make a listener that responds each time a new message is received?

Thanks

  • 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-17T16:39:30+00:00Added an answer on May 17, 2026 at 4:39 pm

    There is ObjectInputStream#readObject() and you can also combine ObjectInputStream with a BufferedInputStream.

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

Sidebar

Related Questions

I have Client/Server System (using Socket) with multiple clients and single server, which is
I have a Server Socket and 3-4 android devices as clients. I'm using TCP/IP
I have wrote a server program that can handle multiple client by using fork().
I have a client and server communicating via Spring remoting (using Java Serialization) over
I have a Silverlight application communicating with the server side through WCF services. Initially
I have a Silverlight application on the client communicating with the server side through
I need to develop a client server system where I can have multiple clients
I have a WCF client/server app which is communicating over HTTP using the WSHttpBinding.
I have a database server communicating with a Java application server using JDBC. I
I have to write a multithreaded client and server using Java's socket api. Both

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.