Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Newbie help : Client / Server.  RSS feed

Andrew McClintock
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

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!