Results 1 to 3 of 3
Thread: Chat Room help
- 01-10-2010, 04:33 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 12
- Rep Power
- 0
- 01-11-2010, 12:33 AM #2
I've never done this with RMI, but I have done this using simple sockets and object serialization.
In my implementation, I kept all the 'rooms' on the server, and each client would communicated with the server and identify itself in each message. In this way, the server knew where to direct messages. That way, the server only needs to use the one port, and each client has its own socket.
I would imagine that in using RMI, you could pass information about who is talking to whom as parameters ... But I don't know how an RMI implementation would keep track of its clients.
In my app, it was IRC style and every message sent to the server was relayed to every client in the current room - so the server kept a list of sockets for each room. A single thread and server socket listened to messages from all clients and directed them from there.
- 01-13-2010, 01:28 PM #3
Senior Member
- Join Date
- Nov 2009
- Posts
- 150
- Rep Power
- 4
Similar Threads
-
Problem With Chat
By Noelf21 in forum New To JavaReplies: 1Last Post: 12-15-2009, 02:51 PM -
Chat application with RMI
By dhaval.rajput.p in forum Advanced JavaReplies: 0Last Post: 07-11-2009, 10:12 AM -
Chat tutorials
By imperium2335 in forum Java AppletsReplies: 1Last Post: 06-29-2009, 04:39 AM -
How to make a game quit in BlueJ after entering a room
By alpdog14 in forum New To JavaReplies: 3Last Post: 04-20-2009, 09:53 PM -
Java Developer Needed/Perm/NJ/Brokerage...lots of room for growth
By shagans982 in forum Jobs OfferedReplies: 1Last Post: 08-09-2008, 11:55 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks