This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to show connected users in the server?

 
Aron Jhed Amiscosa
Ranch Hand
Posts: 118
  • 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
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • 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.
 
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!