summaryrefslogtreecommitdiff
path: root/src/session.hpp
Commit message (Collapse)AuthorAgeFilesLines
* internal!: organized internal structure, using cmake nowlittleblack1112025-06-131-88/+0
|
* internal!: refactored to smart pointerlittleblack1112025-06-131-9/+9
|
* style: clang-formatgithub-actions[bot]2025-06-121-1/+1
|
* fix(Makefile): -O0 buildslittleblack1112025-06-121-0/+2
|
* internal: all CFileDescriptor is now wrapped in shared_ptrlittleblack1112025-05-311-1/+1
| | | | | shared_ptr operations are atomic good for multi threading
* style: remove unncessary Hyprutils::OS NSlittleblack1112025-05-311-1/+1
|
* fix: don't accept ascii seq(0x1B)littleblack1112025-05-271-0/+2
| | | | | | this can mess up terminals of others won't really affect the server as we using ftxui and it seems to not affect the output somehow
* style: clang-formatgithub-actions[bot]2025-05-211-2/+2
|
* session(write): write then restore readinglittleblack1112025-05-211-1/+2
|
* style: clang-formatgithub-actions[bot]2025-05-211-1/+1
|
* feat: non-admin commandslittleblack1112025-05-211-0/+1
|
* Revert "internal: use smart pointer for everything, no more naked pointer"littleblack1112025-05-201-9/+9
| | | | | | This reverts commit 72cf95bc9b1eb338457a0815eb1fe4f70b42ebb3. segfault/IOT instruct on client exit...
* internal: use smart pointer for everything, no more naked pointerlittleblack1112025-04-071-9/+9
|
* internal(session::writeChat): also be bool, returns write()'s boollittleblack1112025-04-071-1/+1
|
* session: use std::string for m_ip instead of c charlittleblack1112025-04-071-2/+2
|
* feat: deaflittleblack1112025-04-031-2/+5
| | | | necessary for being deaf during registeration
* feat: ability to mute/unmute clients (#12)littleblack1112025-03-221-0/+4
|
* feat(commands): client execute commands (#8)littleblack1112025-03-221-0/+5
| | | | refactor(session): writeChat, unify written chat internal: removed `CChatManager::broadcastMessage`, just use `g_pSessionManager->broadcastChat(msg)`
* feat(session): getIplittleblack1112025-03-211-0/+1
|
* session(SRecvData): use false as defaultlittleblack1112025-03-211-1/+1
| | | | | 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-211-1/+0
| | | | self?)
* feat: kick client (#6)littleblack1112025-03-201-1/+1
|
* debug: only run hooks that is for debug purposes in debug buildslittleblack1112025-03-201-1/+5
| | | | log: only log TRACE in debug builds
* cleanup: explicit const and return original instead of dupe for perflittleblack1112025-03-201-1/+1
|
* clang-format & clang-tidylittleblack1112025-03-201-8/+7
|
* session(SRecvData::data): use std::string instead of char*littleblack1112025-03-201-0/+5
|
* fix: NONEWLINE more explicitlittleblack1112025-03-201-0/+2
| | | | | | 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-201-6/+5
|
* NFormatter: no more prefix support for socket writelittleblack1112025-03-201-2/+2
| | | | NFormatter: remove CHAT prefix
* clang-tidylittleblack1112025-03-201-1/+1
|
* session(write): fix newline not being printed before writelittleblack1112025-03-201-0/+2
| | | rn if you write() while there is a read("text") it would output the new write() in the same line which is not ideal.
* bump: compile_commandslittleblack1112025-03-201-22/+21
|
* session: get/use IP and port on connectlittleblack1112025-03-201-4/+17
|
* perf(session): uint8_t for eEventTypelittleblack1112025-03-201-1/+1
|
* clang-formatlittleblack1112025-03-201-1/+1
|
* session(registerSession): don't errno, just break if reset by peer(disconnect)littleblack1112025-03-201-1/+1
|
* 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/+1
| | | | | | | | | | 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 -> recvLooplittleblack1112025-03-201-1/+1
| | | | fix(recvLoop): break if !good
* style: remove random const, reorganize stufflittleblack1112025-03-201-11/+13
|
* fix: session not disconnected properlylittleblack1112025-03-201-0/+4
| | | | perf: use server sockfd directly instead of a dupe of it
* refactor: logging systemlittleblack1112025-03-071-4/+8
|
* session: dynamic onErrnolittleblack1112025-03-051-1/+5
| | | | refactor: read(std::string)
* clang-format & clang-tidylittleblack1112025-03-041-19/+19
|
* refactor!: python -> c++littleblack1112025-03-041-0/+32