summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(session): strerrno thread safetylittleblack1112025-04-071-1/+5
|
* style: clang-formatgithub-actions[bot]2025-04-071-1/+1
|
* style: clang-tidygithub-actions[bot]2025-04-072-11/+11
|
* feat: ftxui (#17)littleblack1112025-04-0713-29/+299
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ready for merge rm sum random ocmments first and https://github.com/ArthurSonzogni/FTXUI/issues/1024 but still, ready for merge since we can't do anything on our end * style: clang-tidy * ci * ci * style: clang-tidy * fix * fix: scroll https://github.com/ArthurSonzogni/git-tui/blob/master/src/scroller.cpp * focus * update todo * style: clang-format * update todo * sticky scroll * update todxo * smol fix need event to update screen. so we just give event when IO updates * style: clang-format --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat: deaflittleblack1112025-04-033-7/+33
| | | | necessary for being deaf during registeration
* fix: std::quick_exit don't exist in osxlittleblack1112025-03-231-1/+1
| | | | for some reason that don't work in macos, but _Exit does..
* fixup! feat!: require arg for server portlittleblack1112025-03-221-4/+2
|
* internal: catch exceptions at main()littleblack1112025-03-221-1/+7
|
* server: print -> loglittleblack1112025-03-221-2/+1
|
* server: keepalivelittleblack1112025-03-221-3/+7
| | | | perf: constexpr more
* feat: ability to mute/unmute clients (#12)littleblack1112025-03-224-8/+70
|
* fix(nameExists): kill dead thread/sessionlittleblack1112025-03-221-1/+10
| | | | | fixes a bug where if you quit then rejoin with the same name, it still says name exists
* fix: broken pipe sometimeslittleblack1112025-03-221-1/+1
|
* fix: potential crash for weirdly exited clientslittleblack1112025-03-222-4/+4
| | | | | | | | | fixes #9 FIXME: spamming too much will still give ``` terminate called after throwing an instance of 'std::system_error' what(): Resource deadlock avoided ```
* feat(commands): client execute commands (#8)littleblack1112025-03-229-41/+69
| | | | refactor(session): writeChat, unify written chat internal: removed `CChatManager::broadcastMessage`, just use `g_pSessionManager->broadcastChat(msg)`
* fix(sessionManager,kick): only write message if CSession existlittleblack1112025-03-221-3/+2
|
* feat: inputManager and commandHandler (#7)littleblack1112025-03-227-2/+251
| | | | | server now have ability to send chat like any clients. can also run commands(registered in commands.cpp)
* feat(session): getIplittleblack1112025-03-213-3/+8
|
* feat(sessionManager): getSessionslittleblack1112025-03-212-0/+6
|
* clang-formatlittleblack1112025-03-212-4/+4
|
* session(SRecvData): use false as defaultlittleblack1112025-03-212-2/+4
| | | | | so if something was wrong(the function directly returned or smth, it'd be good = false)
* perf: directly kick instead of calling function in the session(killing it's ↵littleblack1112025-03-214-22/+17
| | | | self?)
* Revert "fix: use shared ptr properly"littleblack1112025-03-202-2/+2
| | | | | This reverts commit 5c007b1581e7c36ce81de299e47c0c9ef51e9950. revert until a solution is developed
* feat: kick client (#6)littleblack1112025-03-204-13/+36
|
* fix: use shared ptr properlylittleblack1112025-03-202-2/+2
| | | | FIXME: for some reason dtors arent called even if use_count() is 0...
* chatServer: atexit() -> cleanup()littleblack1112025-03-201-0/+3
|
* newMessage: better formatlittleblack1112025-03-201-1/+1
|
* debug: only run hooks that is for debug purposes in debug buildslittleblack1112025-03-204-7/+35
| | | | log: only log TRACE in debug builds
* cleanup: explicit const and return original instead of dupe for perflittleblack1112025-03-206-6/+6
|
* chatManager.hpp: #pragma oncelittleblack1112025-03-201-0/+2
|
* refactor(log): removed redundant overloadslittleblack1112025-03-201-6/+7
|
* clang-format & clang-tidylittleblack1112025-03-209-67/+66
|
* session(SRecvData::data): use std::string instead of char*littleblack1112025-03-202-16/+30
|
* fix: NONEWLINE more explicitlittleblack1112025-03-203-3/+22
| | | | | | fixes a problem where all of socket wrote response is using NONE fmt(944b18bde52778b32c31dc23f3d90fc17b94794f) so all of them don't have \n
* perf(session): use pointer for SRecvDatalittleblack1112025-03-202-23/+32
|
* feat(session): resume history for new client or rejoinlittleblack1112025-03-203-3/+19
|
* NFormatter: no more prefix support for socket writelittleblack1112025-03-205-18/+15
| | | | NFormatter: remove CHAT prefix
* sessionManager(broadcast): same order arg list as loglittleblack1112025-03-202-2/+2
|
* session: read also include name of selflittleblack1112025-03-201-1/+1
|
* cleanup(session): unnecessary scope(eFormatType)littleblack1112025-03-201-2/+2
|
* misc: use EXIT_SUCCESS and EXIT_FAILURE instead of 0 and 1littleblack1112025-03-201-6/+7
|
* fix(sessionManager): don't join() thread on dtor, reset them insteadlittleblack1112025-03-201-3/+5
| | | | | | | also do that in removeSession this fixes when theres multiple clients, the first join() would block second one from getting destoryed
* feat!: require arg for server portlittleblack1112025-03-203-5/+48
|
* clang-tidylittleblack1112025-03-202-7/+6
|
* server(reuse): constexpr for perflittleblack1112025-03-201-1/+1
|
* session(write): fix newline not being printed before writelittleblack1112025-03-202-0/+6
| | | rn if you write() while there is a read("text") it would output the new write() in the same line which is not ideal.
* cleanup: shared ptr .get() and std::move() use caseslittleblack1112025-03-201-1/+1
| | | | fixes a bug where dtor of CSession is not called
* rename(chatServer): m_sessionThread -> m_sessionManagerThreadlittleblack1112025-03-202-5/+5
|
* bump: compile_commandslittleblack1112025-03-203-31/+31
|
* session: get/use IP and port on connectlittleblack1112025-03-204-13/+31
|