| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | 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 |
| | | |||||
| * | signal: quick_exit as fallback if stuck at exit | littleblack111 | 2025-03-20 | 1 | -0/+4 |
| | | |||||
| * | fix(registerName): no longer allow same name | littleblack111 | 2025-03-20 | 10 | -23/+94 |
| | | | | | | | | | | | the previous behaviour was it wouldn't broadcast the message to the same name debug: more logging, maybe we should disable TRACE by default in the future? WIP: partial impl of signal handling(SIGINT(keyboardinterrupt) etc) | ||||
| * | session: recvManager -> recvLoop | littleblack111 | 2025-03-20 | 2 | -4/+4 |
| | | | | | fix(recvLoop): break if !good | ||||
| * | feat: broadcast message from one client to the rest, making chat actually ↵ | littleblack111 | 2025-03-20 | 8 | -11/+61 |
| | | | | | | | | possible fix(chatServer, CSessionManager): .join sessionThread properly cleanup(server): unused header | ||||
| * | fix(essionManager): default broadcast = {} -> broadcast = NONE | littleblack111 | 2025-03-20 | 1 | -1/+1 |
| | | |||||
| * | style: remove random const, reorganize stuff | littleblack111 | 2025-03-20 | 2 | -20/+23 |
| | | |||||
| * | sessionManager: run in a jthread, for prep of inputManager | littleblack111 | 2025-03-20 | 5 | -8/+59 |
| | | | | | refactor(main)!: move main infra to oop chatServer | ||||
| * | fix: session not disconnected properly | littleblack111 | 2025-03-20 | 8 | -46/+86 |
| | | | | | perf: use server sockfd directly instead of a dupe of it | ||||
| * | refactor(format,log): better/simpler way to do them | littleblack111 | 2025-03-07 | 3 | -109/+36 |
| | | |||||
| * | refactor: logging system | littleblack111 | 2025-03-07 | 7 | -39/+178 |
| | | |||||
| * | style: clang-format | github-actions[bot] | 2025-03-05 | 2 | -4/+5 |
| | | |||||
| * | refactor(server): uneeded reusable variables/functions | littleblack111 | 2025-03-05 | 2 | -10/+3 |
| | | |||||
| * | session: dynamic onErrno | littleblack111 | 2025-03-05 | 2 | -24/+19 |
| | | | | | refactor: read(std::string) | ||||
| * | server: reuse(SO_REUSEADDR) | littleblack111 | 2025-03-05 | 1 | -1/+4 |
| | | |||||
| * | fix(filedescriptor): headers | littleblack111 | 2025-03-05 | 1 | -1/+1 |
| | | |||||
| * | cleanup: random comments | littleblack111 | 2025-03-05 | 1 | -13/+0 |
| | | |||||
| * | cleanup: unused header | littleblack111 | 2025-03-05 | 1 | -1/+0 |
| | | |||||
| * | clang-format & clang-tidy | littleblack111 | 2025-03-04 | 10 | -161/+155 |
| | | |||||
| * | refactor!: python -> c++ | littleblack111 | 2025-03-04 | 10 | -0/+416 |
