File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to show connected users in the server?

 
Jhedzkie Skies
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got the chat program running and now i am modeling the GUI. From applet -> Frames,,,

then i came to an idea to make my program look a bit like the yahoo messenger or the msn...

i want to know how to show the names of the connected users on the server.

any idea on this?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple: the client has to tell the server the name of the user. Usually there's a notion of logging in with a password, so users can't easily masquerade as one another, but if you wanted, the client could simply send (for example) a command like "Username: foo" as the first command after connecting.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic