| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | server: print -> log | littleblack111 | 2025-03-22 | 1 | -2/+1 | |
| | | ||||||
| * | server: keepalive | littleblack111 | 2025-03-22 | 1 | -3/+7 | |
| | | | | | perf: constexpr more | |||||
| * | feat: ability to mute/unmute clients (#12) | littleblack111 | 2025-03-22 | 4 | -8/+70 | |
| | | ||||||
| * | fix(nameExists): kill dead thread/session | littleblack111 | 2025-03-22 | 1 | -1/+10 | |
| | | | | | | fixes a bug where if you quit then rejoin with the same name, it still says name exists | |||||
| * | fix: broken pipe sometimes | littleblack111 | 2025-03-22 | 1 | -1/+1 | |
| | | ||||||
| * | fix: potential crash for weirdly exited clients | littleblack111 | 2025-03-22 | 2 | -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) | littleblack111 | 2025-03-22 | 9 | -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 exist | littleblack111 | 2025-03-22 | 1 | -3/+2 | |
| | | ||||||
| * | feat: inputManager and commandHandler (#7) | littleblack111 | 2025-03-22 | 7 | -2/+251 | |
| | | | | | | server now have ability to send chat like any clients. can also run commands(registered in commands.cpp) | |||||
| * | feat(session): getIp | littleblack111 | 2025-03-21 | 3 | -3/+8 | |
| | | ||||||
| * | feat(sessionManager): getSessions | littleblack111 | 2025-03-21 | 2 | -0/+6 | |
| | | ||||||
| * | clang-format | littleblack111 | 2025-03-21 | 2 | -4/+4 | |
| | | ||||||
| * | session(SRecvData): use false as default | littleblack111 | 2025-03-21 | 2 | -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 ↵ | littleblack111 | 2025-03-21 | 4 | -22/+17 | |
| | | | | | self?) | |||||
| * | Revert "fix: use shared ptr properly" | littleblack111 | 2025-03-20 | 2 | -2/+2 | |
| | | | | | | This reverts commit 5c007b1581e7c36ce81de299e47c0c9ef51e9950. revert until a solution is developed | |||||
| * | feat: kick client (#6) | littleblack111 | 2025-03-20 | 4 | -13/+36 | |
| | | ||||||
| * | fix: use shared ptr properly | littleblack111 | 2025-03-20 | 2 | -2/+2 | |
| | | | | | FIXME: for some reason dtors arent called even if use_count() is 0... | |||||
| * | chatServer: atexit() -> cleanup() | littleblack111 | 2025-03-20 | 1 | -0/+3 | |
| | | ||||||
| * | newMessage: better format | littleblack111 | 2025-03-20 | 1 | -1/+1 | |
| | | ||||||
| * | debug: only run hooks that is for debug purposes in debug builds | littleblack111 | 2025-03-20 | 4 | -7/+35 | |
| | | | | | log: only log TRACE in debug builds | |||||
| * | cleanup: explicit const and return original instead of dupe for perf | littleblack111 | 2025-03-20 | 6 | -6/+6 | |
| | | ||||||
| * | chatManager.hpp: #pragma once | littleblack111 | 2025-03-20 | 1 | -0/+2 | |
| | | ||||||
| * | refactor(log): removed redundant overloads | littleblack111 | 2025-03-20 | 1 | -6/+7 | |
| | | ||||||
| * | clang-format & clang-tidy | littleblack111 | 2025-03-20 | 9 | -67/+66 | |
| | | ||||||
| * | session(SRecvData::data): use std::string instead of char* | littleblack111 | 2025-03-20 | 2 | -16/+30 | |
| | | ||||||
| * | fix: NONEWLINE more explicit | littleblack111 | 2025-03-20 | 3 | -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 SRecvData | littleblack111 | 2025-03-20 | 2 | -23/+32 | |
| | | ||||||
| * | feat(session): resume history for new client or rejoin | littleblack111 | 2025-03-20 | 3 | -3/+19 | |
| | | ||||||
| * | NFormatter: no more prefix support for socket write | littleblack111 | 2025-03-20 | 5 | -18/+15 | |
| | | | | | NFormatter: remove CHAT prefix | |||||
| * | sessionManager(broadcast): same order arg list as log | littleblack111 | 2025-03-20 | 2 | -2/+2 | |
| | | ||||||
| * | session: read also include name of self | littleblack111 | 2025-03-20 | 1 | -1/+1 | |
| | | ||||||
| * | cleanup(session): unnecessary scope(eFormatType) | littleblack111 | 2025-03-20 | 1 | -2/+2 | |
| | | ||||||
| * | misc: use EXIT_SUCCESS and EXIT_FAILURE instead of 0 and 1 | littleblack111 | 2025-03-20 | 1 | -6/+7 | |
| | | ||||||
| * | fix(sessionManager): don't join() thread on dtor, reset them instead | littleblack111 | 2025-03-20 | 1 | -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 port | littleblack111 | 2025-03-20 | 3 | -5/+48 | |
| | | ||||||
| * | clang-tidy | littleblack111 | 2025-03-20 | 2 | -7/+6 | |
| | | ||||||
| * | server(reuse): constexpr for perf | littleblack111 | 2025-03-20 | 1 | -1/+1 | |
| | | ||||||
| * | session(write): fix newline not being printed before write | littleblack111 | 2025-03-20 | 2 | -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 cases | littleblack111 | 2025-03-20 | 1 | -1/+1 | |
| | | | | | fixes a bug where dtor of CSession is not called | |||||
| * | rename(chatServer): m_sessionThread -> m_sessionManagerThread | littleblack111 | 2025-03-20 | 2 | -5/+5 | |
| | | ||||||
| * | bump: compile_commands | littleblack111 | 2025-03-20 | 3 | -31/+31 | |
| | | ||||||
| * | session: get/use IP and port on connect | littleblack111 | 2025-03-20 | 4 | -13/+31 | |
| | | ||||||
| * | format/log: trace prefix | littleblack111 | 2025-03-20 | 1 | -0/+3 | |
| | | ||||||
| * | cleanup(chatManager): uneeded qualification | littleblack111 | 2025-03-20 | 1 | -1/+1 | |
| | | ||||||
| * | perf(session): uint8_t for eEventType | littleblack111 | 2025-03-20 | 1 | -1/+1 | |
| | | ||||||
| * | clang-format | littleblack111 | 2025-03-20 | 11 | -125/+124 | |
| | | ||||||
| * | session: log if user exited without registering | littleblack111 | 2025-03-20 | 1 | -2/+4 | |
| | | ||||||
| * | session(registerSession): don't errno, just break if reset by peer(disconnect) | littleblack111 | 2025-03-20 | 2 | -9/+9 | |
| | | ||||||
| * | signal(session,sessionManager): atexit handler | littleblack111 | 2025-03-20 | 4 | -0/+15 | |
| | | | | | sometimes have malloc: Heap corruption detected :/ | |||||
| * | fix(header): signal include | littleblack111 | 2025-03-20 | 1 | -0/+1 | |
| | | ||||||
