summaryrefslogtreecommitdiff
path: root/src/session.cpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-formatlittleblack1112025-03-211-2/+2
|
* session(SRecvData): use false as defaultlittleblack1112025-03-211-1/+3
| | | | | 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-7/+1
| | | | self?)
* feat: kick client (#6)littleblack1112025-03-201-8/+7
|
* debug: only run hooks that is for debug purposes in debug buildslittleblack1112025-03-201-6/+20
| | | | 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-10/+10
|
* session(SRecvData::data): use std::string instead of char*littleblack1112025-03-201-16/+25
|
* fix: NONEWLINE more explicitlittleblack1112025-03-201-2/+16
| | | | | | 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-17/+27
|
* feat(session): resume history for new client or rejoinlittleblack1112025-03-201-1/+7
|
* NFormatter: no more prefix support for socket writelittleblack1112025-03-201-8/+8
| | | | NFormatter: remove CHAT prefix
* session: read also include name of selflittleblack1112025-03-201-1/+1
|
* cleanup(session): unnecessary scope(eFormatType)littleblack1112025-03-201-2/+2
|
* clang-tidylittleblack1112025-03-201-6/+5
|
* session(write): fix newline not being printed before writelittleblack1112025-03-201-0/+4
| | | 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-6/+7
|
* session: get/use IP and port on connectlittleblack1112025-03-201-4/+10
|
* clang-formatlittleblack1112025-03-201-19/+17
|
* session: log if user exited without registeringlittleblack1112025-03-201-2/+4
|
* session(registerSession): don't errno, just break if reset by peer(disconnect)littleblack1112025-03-201-8/+8
|
* signal(session,sessionManager): atexit handlerlittleblack1112025-03-201-0/+5
| | | | sometimes have malloc: Heap corruption detected :/
* fix(registerName): no longer allow same namelittleblack1112025-03-201-7/+19
| | | | | | | | | | 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-3/+3
| | | | fix(recvLoop): break if !good
* feat: broadcast message from one client to the rest, making chat actually ↵littleblack1112025-03-201-4/+4
| | | | | | | possible fix(chatServer, CSessionManager): .join sessionThread properly cleanup(server): unused header
* style: remove random const, reorganize stufflittleblack1112025-03-201-9/+10
|
* fix: session not disconnected properlylittleblack1112025-03-201-12/+20
| | | | perf: use server sockfd directly instead of a dupe of it
* refactor: logging systemlittleblack1112025-03-071-18/+42
|
* session: dynamic onErrnolittleblack1112025-03-051-23/+14
| | | | refactor: read(std::string)
* cleanup: unused headerlittleblack1112025-03-051-1/+0
|
* clang-format & clang-tidylittleblack1112025-03-041-61/+60
|
* refactor!: python -> c++littleblack1112025-03-041-0/+112