I am trying to make a very simple chat program using RMI ( no GUI's) but i am struggling for ideas. How do i register clients when they connect to the server? Toshiba e studio 181 software. When i use RemoteServer.getClientHost() all this does is show the ip address (and they are the same for all clients that connect from the same computer (from multiple command windows). What i am trying to implement is this: when a client logs on he is shown a switch-case menu and ift they press • they get a list of connected clients. • sendMessage(client, String) But i do not know how to identify individual clients? And when i do, how do i show a string only on that client's window? Thanks, Research: (i have looked at ideas on the web but a lot of them are more advanced than i want. This is a simple application and i do not want to complicate it / copy code i dont understand). John deere 1010 crawler serial number location. In this tutorial, we will create a simple chat program using two users. 1 Let’s create a new Java Project using Eclipse ( or NetBeans or other editor you prefer), and call it: SimpleChatServer-> Click Finish once done. There are previous questions on SO but with 0/1 answers (not very popular topic!) or not helpful!
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |