multi user chat client/server program
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   reggie_ravindran
Posted On:   Wednesday, March 6, 2002 01:55 AM

sir,
i am making a chat server in java ....the program that i have made works only when i have got two clients ...but i want a proper chat session between multiple users.....so that as many people can chat using it....do i have to make changes in the client side or in the server side program...& what all changes are required....please suggest asap...
regards.
reggie.
reggie_rs@hotmail.com

Re: multi user chat client/server program

Posted By:   Adnan_Durrani  
Posted On:   Friday, May 10, 2002 09:58 PM


There are two step:



1, Create a Server Socket Object.

2, Put the Server.accept() in the while loop.

3, Put all the incomming sockets in a vector as a Thread.

4, Do your all stuff in client Thread.

5, for private message use that Vector.




Mohammad Adnan Durrani
madnandurrani@hotmail.com

About | Sitemap | Contact