can you please help me on this...
i can't start it
CHAT SERVER
Create a program that will serve as o Chat Server where multiple clients
(user) can access. The server should do the following:
- Has a login module where a user name and password will be required (on
the server side, a file/database tablecontaining the user name and password
should be created)
- In case the user is a new one, there should be a way to create/register
a new user
- Upon logging in, chat rooms should be available and are saved on a
different file/database table.
- All commands must be sent through a chat prompt (similar to the cmd
prompt of windows)
- Set of commands
- /help ~ shows all of the available commands
- /enter <room> ~ to enter a room
- /list ~ list the available rooms
- /msg <user name> <message> ~ private message
- /bc <message> ~ broadcast a message to all users in all rooms
- /users ~ lists the users and their locations
- /bye ~ quit chat
- /exit ~ exit room (transfer to the root)
- all texts without a leading slash (/) or is not listed above will be
sent as message to all users within the same chat room
- you can add more user commands as you deem necessary
================================================== ==============================
*sample run*
*Client Side*
------------------------------
c:\> java MyChatClient
Welcome to the the Chat Server! To register, type "new" in the login name
prompt. If you already have an account, type your login name and password on
the following prompts.
Login Name: *test*
Password: ****
Hi! You are inside the Root Room. Here are the available commands.
- /help ~ shows all of the available commands
- /enter <room> ~ to enter a room
- /list ~ list the available rooms
- /msg <user name> <message> ~ private message
- /bc <message> ~ broadcast a message to all users in all rooms
- /bye ~ quit chat
- /users ~ lists the users and their location
- /exit ~ exit room (transfer to the root)
- all texts without a leading slash (/) or is not listed above will be
sent as message to all users within the same chat room
Type all commands on the CHAT prompt.
CHAT -> /LIST
- LIVING
- DINING
- BEDROOM
- CR
- KITCHEN
CHAT -> /ENTER LIVING
Welcome to the Living Room. The users inside this room are the following:
- Mama
- Papa
- Derick
- Benjie
- Bev
CHAT -> Hello
test: Hello
bev: hello test
derick: test, asl please.
CHAT -> /MSG DERICK 18/F/S326 seat no 31

asl please
test to derick: 18/F/S326 seat no 31
derick to test: 21/m/s326 seat no 32
CHAT -> /bc pogi si derick, katabi ko!!!
BROADCAST FROM TEST: pogi si derick, katabi ko!!!
CHAT -> /QUIT
BYE!!!
C:\>