• Post Reply Bookmark Topic Watch Topic
  • New Topic

conference chat app

 
alok subudhi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for starting a chat application (conference) pl let me know how to and from where to proceed
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are probably going to use client/server model so you'll need to create both. Specifcally what do you have in mind? You'll probably want to build a gui with swing and awt. Then networking part can be handled with io and net packages.
- Sean
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sean is absolutely right.
One more thing you need to decide: Whether it will be a applcn or applet.
If an applet, better not to use swing comp in cleint side.
Be thorough with java.net and java.io java.awt API

Cheers

Originally posted by alok subudhi:
for starting a chat application (conference) pl let me know how to and from where to proceed

 
boba fett
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First off how much time and effort do you wish to put forth to this. If none then go and find another already done chat program.
Well the others have dirrected you to the right path, but here is what I would reccomend. Use the java.net.* pack. Make a server and client side programs.
You would have two programs, the server and the clients.
Create a ServerSocket for a server process. Have that guy except new users, and stores their IPs and user names when they logg in. Now once someone requests another user, put the username and IP in the same little lookup routines. Basically when someone asks for a user by username, all you have to do is look at tall the logged in usernames, and just reroute the IPs to them so they can establish a connection and chat. Or you handle all of the rerouting on the sever to keep IPs from being sent to other users, your choise!
Now on the client side you should set up a Socket object to connect to the Fixed IP location of the Server for a lookup and checkin. Now also give them a serversocket listener (a method on a specified port that accepts() data then reacts). Once you have decided how to route them, by security reasons, now all that is left is to do simple Java I/O back and forth thru the sockets, then route it to a small GUI or console based system. Lots of work, depends what you want this for, there are no easy solutions to anything in life, but hope that helped
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!