Hello friends, I am working on a project where i have to develop a chat for a web site. Can anyone help me in what are the requirements to write a chat applet, i.e what is the logic behind that. Do i need a chat server to write a chat? if yes , then can i write my own chat server or i have to download or purchase from elsewhere. I'll be very thankful to u all. Thanx again Afroz
Hi, As u wanted the logic I am sending the steps that are very important .You can write the code and if you have any problem you can ask me or mail me . I am not sending the code as I feel developing the application urself improves the skills of the persone and will also help u to know more of java Server -------- 1)Create a server socket using the serversocket class of 2)Assign a port to it 3)accept the data from the client . this port should be continuously lisenting to the port so it should be in a while loop 4)store the details in the hash table of the new user 5)read the entire list and send the message recieved from each the client. Client ------- 1)Make use of socket. Pass paramater to it (ie the ip address and the port on which the server is listening ). 2)Create a thread for the client class as the client should recieve what ever is send from the client
------------------ Sandeep Jain
Try and Try Till u succeed<br /> <br />Sandeep Jain
dear sir i am a student of enng college with comp sci as my branch . i have to make minor project in nthis semester. i have thought of making java web server . ps give me the overall guidance of hoe to design it. i'll be greatly thankful to you.
Joined: Nov 22, 2008
Originally posted by manuel-p: hi, yes you can write your own server that listens on a port and write the clients as applets that communicate with the server. I can send you sample code of both if you want.