Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Messages from server to clients  RSS feed

 
Ezequiel
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there.
I got a problem, i hope someone can help me.
This is the problem, i got a lot 3 servers, and a lot of clients. when i run a process in a client when finish the client must send a message to all the clients. i don't know if this must be throught the server or what.
Somebody have a source code whoe can help me.
Thanks
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have each client open a ServerSocket at startup and register its address and port at login. Then if the server wants to send a message to one or all clients it can talk to their ServerSockets. We've done this with a fat Swing client and with a browser plus applet. Does that sound like what you need?
 
Ezequiel
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ezequiel"-
Welcome to the JavaRanch! Could you change your display name (click here)? Basically it should be a first and last name (If you'd like a more thorough reason as to why I'm asking you to change your name, check out the Naming Policy.)

Thanks! And again, Welcome to the JavaRanch!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!