aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Urgent help on Chat Program 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 "Urgent help on Chat Program" Watch "Urgent help on Chat Program" New topic
Author

Urgent help on Chat Program

Afroz Khan
Ranch Hand

Joined: Aug 07, 2000
Posts: 105
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

Afroz
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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.
Afroz Khan
Ranch Hand

Joined: Aug 07, 2000
Posts: 105
Hi manuel,
thanx a lot, but it will be very helpful for me if u send the examples.
Thanx a lot
Afroz
Noah Carroll
Ranch Hand

Joined: Sep 20, 2000
Posts: 96
manuel,
can u also send me those examples. it would be much appreciated. noahman@az.freei.net
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi manuel!
can u send me also the example to "msd_prasad@yahoo.com"
prasad
Michael Zhao
Ranch Hand

Joined: Sep 19, 2000
Posts: 77
Hi manuel!
could u pls send me the example to "ws_zhao@yahoo.com"
Thanks
Zhao

SCJP,SCWCD,SCMAD,OCP9I, SCEA
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
I guess you all had the same homework assignment, huh? It might be better as a learning tool if you tried it on your own but that's just my opinion.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Deepak Kamboj
Greenhorn

Joined: Jun 19, 2000
Posts: 7
Hi Manuel!
Can you please send me source codes.
Thanks in advance..
Regards,
Deepak Kamboj
deepak.kamboj@usa.net
[This message has been edited by Deepak Kamboj (edited October 21, 2000).]
Sandeep Jain
Ranch Hand

Joined: Oct 25, 2000
Posts: 124
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
nishesh chouhan
Ranch Hand

Joined: Nov 06, 2000
Posts: 37
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.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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.

please send me the code also to p_333_2000@yahoo.com
bapi dhar
Ranch Hand

Joined: Mar 02, 2001
Posts: 32
Dear friend
I want trying to make a chatserver from sometime.
Can u send me the code. U would help me a lot.
I thank u from the bottom of my heart.
bapi dhar
bapidhar@mantrafreenet.com
yogesh sood
Ranch Hand

Joined: Aug 31, 2000
Posts: 108
hi sandeep pls elabrote step no. 4 and 5 upto 3rd i have done.
pls

If its green its biology if its stinkks its chemistry if it has numbers it is Maths and if it doesn't work its TECHNOLOGY
yogesh sood
Ranch Hand

Joined: Aug 31, 2000
Posts: 108
hi sandeep pls elabrote step no. 4 and 5 upto 3rd i have done.
pls
Kirill NKaufmann
Ranch Hand

Joined: May 25, 2001
Posts: 46
Hi Manuel!
Can you please send me source codes.
Thanks in advance..
kirill@kirill.cjb.net
annie chan
Greenhorn

Joined: Aug 05, 2003
Posts: 1
hi manuel,
can u send me the code too.
thanks inadvance.
coz' i'm currently need to do a chat program for my project. thanks.
annie_csy26@yahoo.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent help on Chat Program