aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes monitoring the connected clients to the server from diff IP's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "monitoring the connected clients to the server from diff IP Watch "monitoring the connected clients to the server from diff IP New topic
Author

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

Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
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.
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: monitoring the connected clients to the server from diff IP's