Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Newbie help : Client / Server.  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Newbie, or if there is a level below......

Trying to create a Client Server app, simply the server should count connected clients once, the total is ==5 tell all clients a message, end the connection gracefully and clear the count and the vector that held the names, awaiting 5 more clients to connect.

From examples on the web etc i have my client that works well,

The server thread is my issue, My idea is to read in the name given from the client and put it in the vector and increase the count, but i can't seem to get the logic correct.

Would be greatfull if anyone can advise if the idea (as attached) is correct, after which i can work on the error.

Note : Using Bluej

Oh. Hi guys! Look at this tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!