This is a TCP Client-Server Application tailored to work with chat protocol standards from the Tuesday class (CoE 151 T 2:30-5:30)
hanaserver - Server-only application to be used for always-on configuration
client-server - MP1 combined client-server application (up for submission)
termios example - an example of how to control the terminal using the termios library
exceptions example - an example of how to do custom exception handling
User types: /name <alias>
Server receives: NAME <alias>
User types: /whois alias|IP
Server receives: WHOIS <alias|IP>
User types: <message>
Server receives: MSG <message>
User types: /quit
Server receives: QUIT
User types: /time
Server receives: TIME
User types: /whoami
Server receives: WHOAMI
Server broadcasts new connections with “user joins chat” message to everyone, and when user opts to change alias, user keeps alias until the end of his/her session (i.e., when user 10.158.22.99 changes own alias to “AriesBestGrill” and disconnects, when user reconnects, user is back to 10.158.22.99).
PS: the name 'Hana' which can be seen multiple times in the code is a reference to 'Hana Song' from 'Overwatch'
add me bronozoj#1884