summaryrefslogtreecommitdiff
path: root/src/sessionManager.hpp
Commit message (Collapse)AuthorAgeFilesLines
* v1, sigabrt on client disconnectlittleblack1112025-06-071-0/+3
|
* style: clang-formatgithub-actions[bot]2025-05-211-1/+1
|
* internal: prefer direct pointers instead of (uintptr_t) converted oneslittleblack1112025-05-211-1/+1
|
* feat: join and leave messagelittleblack1112025-05-211-2/+3
| | | | | internal: refactored messaging management, use instnace pointer for verification of session
* Revert "internal: use smart pointer for everything, no more naked pointer"littleblack1112025-05-201-5/+5
| | | | | | This reverts commit 72cf95bc9b1eb338457a0815eb1fe4f70b42ebb3. segfault/IOT instruct on client exit...
* internal: use smart pointer for everything, no more naked pointerlittleblack1112025-04-071-5/+5
|
* session: use std::string for m_ip instead of c charlittleblack1112025-04-071-1/+1
|
* fix: potential crash for weirdly exited clientslittleblack1112025-03-221-2/+2
| | | | | | | | | 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-221-1/+3
| | | | refactor(session): writeChat, unify written chat internal: removed `CChatManager::broadcastMessage`, just use `g_pSessionManager->broadcastChat(msg)`
* feat(session): getIplittleblack1112025-03-211-3/+3
|
* feat(sessionManager): getSessionslittleblack1112025-03-211-0/+1
|
* perf: directly kick instead of calling function in the session(killing it's ↵littleblack1112025-03-211-4/+4
| | | | self?)
* feat: kick client (#6)littleblack1112025-03-201-2/+5
|
* NFormatter: no more prefix support for socket writelittleblack1112025-03-201-1/+1
| | | | NFormatter: remove CHAT prefix
* sessionManager(broadcast): same order arg list as loglittleblack1112025-03-201-1/+1
|
* session: get/use IP and port on connectlittleblack1112025-03-201-1/+1
|
* clang-formatlittleblack1112025-03-201-10/+10
|
* signal(session,sessionManager): atexit handlerlittleblack1112025-03-201-0/+1
| | | | sometimes have malloc: Heap corruption detected :/
* fix(registerName): no longer allow same namelittleblack1112025-03-201-1/+4
| | | | | | | | | | 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)
* feat: broadcast message from one client to the rest, making chat actually ↵littleblack1112025-03-201-2/+6
| | | | | | | possible fix(chatServer, CSessionManager): .join sessionThread properly cleanup(server): unused header
* fix(essionManager): default broadcast = {} -> broadcast = NONElittleblack1112025-03-201-1/+1
|
* sessionManager: run in a jthread, for prep of inputManagerlittleblack1112025-03-201-1/+1
| | | | refactor(main)!: move main infra to oop chatServer
* fix: session not disconnected properlylittleblack1112025-03-201-5/+7
| | | | perf: use server sockfd directly instead of a dupe of it
* clang-format & clang-tidylittleblack1112025-03-041-7/+8
|
* refactor!: python -> c++littleblack1112025-03-041-0/+20