To initiate the client program, try client <TCP port number to listen on>
to have the client running on a certain port
Upon success, a message will be printed "Listener successfully running..."
All subsequent log mesage will be printed if there is any client action.
To initiate client, simply type client
Follow the promted to log-in, join seessoin and chat!
The complete set of features will be described below
*currently, login names and passwords are hardcoded in the server program, please check to see.
-
Users talk to each others in sessions, the message will explicity specify from whom and which session the message is coming from
-
The login and create session actions will be broadcasted to all the current logged in users, you can also retrive the user and login info later using the list command
-
Each user is allowed to create multiple sessions and join multiple sessions, the currently joined sessions will be explictily printed
-
Sessions expire when all the users leave the session, and when you log out or exit the program, all of your session will be automatically quited as well.
-
/login <username> <password> <server hostname/ip> <server port number>
To login to the server
-
/createsession <session name>
To create a session called specified in session name, and join it automatically
-
/joinsession <session name>
To join the session under the name session name
-
/leavesession <session name>
To leave a specific session
-
/list
To retrive the current users, sessions and users in each session
-
/logout
Log you out, also leaves all the session you are currently in
-
/quit
Quit the program, also logs you out