Instructions for this assignment are located at this link
-
log when client disconnects, log user if extant -
implement advertisement
-
implement registered users files -
implement lockfile -
implement command line args- 'headless' command again, to ./nohup itself
- stop command
- reset command
-
implement interrupt signals, sigterm signals, for graceful shutdown (write lockfile, ensure text is normal color) -
logging to logfile?
-
Note: the server IP is: 158.83.254.100 but it doesn't appear we can expose ports currently. Should talk to Prof. chen about this.
Send to Client:
Message A text message
Error A server-side error, accompanying a connection close?
Send to Server: userID as a string... REGISTER - register your user HELP - get a list of available commands EXIT - disconnect from the server MYINFO - get info about yourself
ADVERTISEMENT - send ascii art //define size of ascii art
Their buffer size should be at least 11k bytes to accomodate Advertisements
Bonus Possibilities:
- ADVERTISEMENT - send them ascii art of the software development club
- let them change GPA / age / etc SET GPA 2.5 SET AGE 99 RANDOM GPA RANDOM AGE
- Messages SEND MESSAGE READ MESSAGES
- WHO (who is online?) - Unregistered?????
-
Line 83 ish of Connection.c:
- write a function to handle ClientState_Accessing
-
Line 86 of Connection.c
- write a function to handle ClientState_Registered
-
Line 31 of Connection.c
- finish writing the update thread (writes registered file if data is dirty)
-
Logger improvements
- seperate server-settings.txt parameters for console log level and logfile log leve
- printing logs to console in the appropriate color
- prepending text indicating the log type, eg [ERROR]
- prepending a date string
- actually using the logging functionality around the program