forked from scott/threaded_network_chat
1.2 KiB
1.2 KiB
threaded network chat refactor
I have split functions semantically into different files and tied all global variables together in
public.h so they work without modifications.
Additional changes:
- Fixed the dreaded bug where you have to launch the program twice to make it work
- Adjusted the ncurses stuff a bit so it doesn't look as janky
- Changed server/client mode (
modevariable) from an integer to an enum (still works as an integer)
What now?
See TODO. From here we're going to push the code to the gitlab like we were told to after everyone is set up. Follow the coding style guidelines because otherwise everything will be extremely gross and inconsistent. If you set up your editor correctly, it will take care of most of that stuff.
TODO
- Finalize coding style,
- see STYLE.md
- Get everyone's editors set up for clangd/clang-format and git
- Make sure everyone's compiler toolchains work
- Decide who gets what responsibilities
- Distribute appropriate code to people with those responsibilities
- Have everyone upload their respective code to their sections of the gitlab
Build
make
Usage
./ct # run as server
./ct client # run as client