Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

monitoring the connected clients to the server from diff IP's

 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i've developed a chat server which gets invoked from a frame window.
Now whenever a clients gets connected , the clients address is added to the List which gets displayed on the frame window .
This window has to be opened from 3 different machines ( IP's ) so that the server can be monitored from 3 diff location . Please help me on this one .How should i go about it ??
Thanks a ton in advance
[ April 26, 2003: Message edited by: raghav mathur ]
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll explain it in detail....
As the clients get connected ,the Socket object for each client is created on the server side . Now the next step would be to open the I/O streams on the Socket Object
I want to hold on a bit ..... i mean , i don't want to open I/O streams on a socket till the time i select a client whom i wish to talk to .
Suppose there are 5 clients connecetd and i wish to talk to the 4th one . So for this purpose i need to store the Socket Objects of all the 5 clients somewhere so that a list of connected clients can be mantained and on the basis of selection , an Input and Output streams for a specific Socket object ( the 4th one in this case)can be opened.
why i need to do such a thing is that if there are 3 adminsitrators who want to access the chat server so that each of them can handle some specific amount of clients then each of them need to see the current list of connected clients .
Now if the Socket objects of these connected clients are stored somewhere from where theses administrators can make use of the objects and open the I/O streams for one to one chatting.
What can be done to achieve this kind of an objective.Please help me .. its urgent .
Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic