J
joanduan
I have developed a chat program in java. using server socket and
simple socket. The server and client open a DataInputStream and
DataOutputStream Reader. There are two problems that i want to
resolve.
1) I want to show all the currently connected clients in a JList
present in Client GUi.
2) I also want to be able to communicate privately with the other
users and also send binary files like images and audio files
I have created a TrackUser Class which stores info about the user.
However the main problem remains the same, How to send the information
back to the client and display it in a Jlist cause there's gonna be a
lot of info flowing between the server and the client (redirected
obviously from another client) the main problem lies in identifying
which part belongs to userinfo and which part belongs to the chat
portion. When the server sends user information to the client that
appears in the Client textarea whereas i want the list of users in a
JList and the chat in the textarea.
Thanx
simple socket. The server and client open a DataInputStream and
DataOutputStream Reader. There are two problems that i want to
resolve.
1) I want to show all the currently connected clients in a JList
present in Client GUi.
2) I also want to be able to communicate privately with the other
users and also send binary files like images and audio files
I have created a TrackUser Class which stores info about the user.
However the main problem remains the same, How to send the information
back to the client and display it in a Jlist cause there's gonna be a
lot of info flowing between the server and the client (redirected
obviously from another client) the main problem lies in identifying
which part belongs to userinfo and which part belongs to the chat
portion. When the server sends user information to the client that
appears in the Client textarea whereas i want the list of users in a
JList and the chat in the textarea.
Thanx