forked from scott/threaded_network_chat
39 lines
1.4 KiB
Markdown
39 lines
1.4 KiB
Markdown
# 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 (`mode` variable) 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](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
|
|
|
|
## Code
|
|
|
|
Everything is in [src/](src).
|
|
A mostly untouched copy of [Scott's original code](https://git.therats.win/scott/threaded_network_chat) is also in [old/](old).
|
|
A reformatted version of that code is also in [modified-example.cc](modified-example.cc) but it can be ignored.
|
|
|
|
## Build
|
|
|
|
```
|
|
cd src/
|
|
make
|
|
```
|