Compare commits

3 Commits

Author SHA1 Message Date
eb0f004954 update readme again 2026-03-19 23:25:25 -05:00
9c75a62140 update readme 2026-03-19 23:19:17 -05:00
d3c5518db1 add .gitignore 2026-03-19 22:50:41 -05:00
2 changed files with 21 additions and 10 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
client.txt
server.txt
*.o
ct

View File

@@ -1,9 +1,12 @@
# threaded network chat refactor
The functions have been split into semantically appropriate files but almost nothing whatsoever
has been modified.
I have split functions semantically into different files and tied all global variables together in
`public.h` so they work without modifications.
It APPEARS that this version actually works. I tested it a little.
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?
@@ -21,15 +24,19 @@ and inconsistent. If you set up your editor correctly, it will take care of most
- 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
```
## Usage
```
./ct # run as server
```
```
./ct client # run as client
```