Commit Graph
86 Commits
Author SHA1 Message Date
danemacfadden cc793e134a Added list to store history of messages. This is done to address a memory leak. Each thread allocates another 512 bytes and never frees it, but the program breaks if it is freed. Storing a copy of the messages in this list will allow each message stored to be trimmed to its actual size and not 512 bytes, and then the original message can be freed. At the end of execution, the list can be freed. 2026-09-26 13:22:20 -06:00
Dane MacFaddenandGitHub d9527bacc7 Added missing header file 2026-04-29 12:57:33 -06:00
danemacfadden a5867c49d1 removed global variables and passed them to threads as arguments instead 2025-08-28 12:04:57 -06:00
danemacfadden 04b77a1cfe merge 2025-08-27 18:16:59 -06:00
danemacfadden 9f4441ae59 moved all messages to receivelist rather than just ones received 2025-08-27 18:16:59 -06:00
Dane MacFaddenandGitHub eb5d772908 Update README.md 2025-08-26 14:48:27 -06:00
danemacfadden 2263e4f346 made messages appear top down 2025-08-26 13:33:48 -06:00
danemacfadden d2d5aa9138 fixed visual bug 2025-08-25 13:18:48 -06:00
danemacfadden e15eb3e129 fixed segfault from not joining thread 2025-08-25 12:31:00 -06:00
danemacfadden e721165090 added ability to take in input 2025-08-23 14:31:30 -06:00
danemacfadden f9e7cf6b46 got input message printed 2025-08-17 23:57:37 -06:00
danemacfadden 2e6b481343 change makefile to include correct libs 2025-08-15 00:37:55 -06:00
danemacfadden 37f5823c41 nc setup 2025-08-14 13:34:20 -06:00
danemacfadden 04cfa47057 added notcurses, beginning to convert 2025-08-14 13:08:02 -06:00
danemacfadden 823e5b5455 update readme 2025-08-12 12:03:30 -06:00
danemacfadden 090a300c8a increased message size 2025-08-10 22:50:14 -06:00
danemacfadden 191f50225f fixed bug where user's text would clear upon receiving message, even without pressing send 2025-08-10 22:45:36 -06:00
danemacfadden d6d320eece minor bug fix 2025-08-10 21:10:33 -06:00
danemacfadden bd7858cca0 managed to get ncurses to behave in threads 2025-08-10 21:01:21 -06:00
danemacfadden 5595bf640e added another window for chat log 2025-08-10 14:16:55 -06:00
danemacfadden 17687e3d13 fixed bug with /c command 2025-08-10 00:03:01 -06:00
danemacfadden 7ff2842d89 added fourth thread for outputting received messages 2025-08-09 23:59:50 -06:00
danemacfadden 1c904f42c9 added third thread 2025-08-09 23:08:19 -06:00
danemacfadden e62a549a92 readd input thread 2025-08-09 16:50:44 -06:00
danemacfadden de6c8d8ed1 rebase 2025-08-07 23:41:39 -06:00
danemacfadden 73193c93d9 added command to close connection between users 2025-08-07 16:59:26 -06:00
danemacfadden 71835bf84a attempted to add commands 2025-08-07 12:05:08 -06:00
danemacfadden 4fff0db858 added chat log that shows both sides' messages 2025-08-06 19:37:20 -06:00
danemacfadden c20d20fa7e bug fixes and made messages display sender 2025-08-06 13:30:23 -06:00
danemacfadden 3552cfc8ac added chat history 2025-08-05 23:48:18 -06:00
danemacfadden 55d651e3e5 merge fix 2025-08-05 16:47:41 -06:00
Dane MacFadden 3e408b903f merge fix 2025-08-05 16:43:40 -06:00
danemacfadden f33a2a6dbd update Makefile and fix minor bugs 2025-08-05 14:31:01 -06:00
danemacfadden 2fd3f1c81f initial ncurses stuff 2025-08-05 14:08:22 -06:00
Dane MacFadden 6a9f876ccd better error checking 2025-07-29 00:45:06 -06:00
danemacfadden 49bdf4f568 fix return value 2025-07-28 13:00:19 -06:00
danemacfadden 207c7a2919 got two way communication 2025-07-28 00:48:22 -06:00
danemacfadden d297356eb3 got sending working but only one way? 2025-07-28 00:43:22 -06:00
danemacfadden 8df5e58f9a fix free issue in ListRemove 2025-07-28 00:19:22 -06:00
Dane MacFadden 71c668b69e sync desktop 2025-07-28 00:17:17 -06:00
Dane MacFadden 84ac457946 merge fix 2025-07-27 17:09:45 -06:00
danemacfadden 39d28a54c1 transfer to other machine 2025-07-27 14:08:08 -06:00
danemacfadden b7b1688e88 send test 2025-07-26 18:15:14 -06:00
Dane MacFadden 23fd0d85a1 merge fix 2025-07-25 19:10:48 -06:00
Dane MacFadden 1e7bf3f5e0 merge fix 2025-07-25 19:06:44 -06:00
DaneMacFaddenandGitHub 6086c8ec2c Update README.md 2025-07-19 23:24:00 -06:00
danemacfadden af5258fd97 pointer issue 2025-07-15 12:42:10 -06:00
danemacfadden af6b68fa9b cast to string 2025-07-15 12:38:23 -06:00
danemacfadden 5b4ad86b26 fixed pointer issue 2025-07-15 12:08:37 -06:00
danemacfadden eac0c934dc fixed bug in output and sender 2025-07-15 11:42:10 -06:00