• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Urgent help on Chat Program

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi manuel,
thanx a lot, but it will be very helpful for me if u send the examples.
Thanx a lot
Afroz
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
manuel,
can u also send me those examples. it would be much appreciated. [email protected]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi manuel!
can u send me also the example to "[email protected]"
prasad
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi manuel!
could u pls send me the example to "[email protected]"
Thanks
Zhao
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Manuel!
Can you please send me source codes.
Thanks in advance..
Regards,
Deepak Kamboj
[email protected]
[This message has been edited by Deepak Kamboj (edited October 21, 2000).]
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 [email protected]
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
[email protected]
 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi sandeep pls elabrote step no. 4 and 5 upto 3rd i have done.
pls
 
yogesh sood
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi sandeep pls elabrote step no. 4 and 5 upto 3rd i have done.
pls
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Manuel!
Can you please send me source codes.
Thanks in advance..
[email protected]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
[email protected]
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic