summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* nuhthreadinglittleblack1112025-06-071-86/+0
|
* perf(Makefile): -O3 optimization for release buildslittleblack1112025-06-071-1/+1
|
* v1, sigabrt on client disconnectlittleblack1112025-06-0716-45/+233
|
* fix: consolidate port number validation logiclittleblack1112025-06-041-6/+2
|
* fix(3c94a88ec7419e9d0c83c99883c4a0b010a97614): logic error in read(bypassDeaf)littleblack1112025-06-021-1/+1
| | | | | previously, m_bDeaf was cached, now it's not and directly read note: previously, the second deaf check was unncessary
* Revert "style: clang-tidy"littleblack1112025-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit aa84ff9d0cd2b31cda6e6b55b4f36cec7e61eec0. not sure why.. ``` src/session.cpp:105:19: error: no matching function for call to ‘std::__cxx11::basic_string<char>::erase(std::ranges::borrowed_subrange_t<std::__cxx11::basic_string<char>&>, std::__cxx11::basic_string<char>::iterator)’ 105 | data.erase(std::ranges::remove(data, asciiEscape), data.end()); // don't accept ASCII code, might mess up terminal | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/session.cpp:105:19: note: there are 3 candidates In file included from /usr/include/c++/15.1.1/string:56, from /usr/include/c++/15.1.1/bits/locale_classes.h:42, from /usr/include/c++/15.1.1/bits/ios_base.h:43, from /usr/include/c++/15.1.1/ios:46, from /usr/include/c++/15.1.1/bits/ostream.h:43, from /usr/include/c++/15.1.1/bits/unique_ptr.h:43, from /usr/include/c++/15.1.1/memory:80, from src/chatManager.hpp:3, from src/session.hpp:4, from src/session.cpp:1: /usr/include/c++/15.1.1/bits/basic_string.h:2323:7: note: candidate 1: ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::erase(size_type, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]’ 2323 | erase(size_type __pos = 0, size_type __n = npos) | ^~~~~ /usr/include/c++/15.1.1/bits/basic_string.h:2323:23: note: no known conversion for argument 1 from ‘std::ranges::borrowed_subrange_t<std::__cxx11::basic_string<char>&>’ to ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} 2323 | erase(size_type __pos = 0, size_type __n = npos) | ~~~~~~~~~~^~~~~~~~~ /usr/include/c++/15.1.1/bits/basic_string.h:2343:7: note: candidate 2: ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::erase(__const_iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; iterator = std::__cxx11::basic_string<char>::iterator; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]’ 2343 | erase(__const_iterator __position) | ^~~~~ /usr/include/c++/15.1.1/bits/basic_string.h:2343:7: note: candidate expects 1 argument, 2 provided /usr/include/c++/15.1.1/bits/basic_string.h:2363:7: note: candidate 3: ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::erase(__const_iterator, __const_iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; iterator = std::__cxx11::basic_string<char>::iterator; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]’ 2363 | erase(__const_iterator __first, __const_iterator __last) | ^~~~~ /usr/include/c++/15.1.1/bits/basic_string.h:2363:30: note: no known conversion for argument 1 from ‘std::ranges::borrowed_subrange_t<std::__cxx11::basic_string<char>&>’ to ‘std::__cxx11::basic_string<char>::__const_iterator’ {aka ‘std::__cxx11::basic_string<char>::const_iterator’} 2363 | erase(__const_iterator __first, __const_iterator __last) | ~~~~~~~~~~~~~~~~~^~~~~~~ make: *** [Makefile:73: build/session.o] Error 1 make: *** Waiting for unfinished jobs.... ```
* style: clang-tidygithub-actions[bot]2025-05-311-1/+1
|
* makefile: -O0 doesn't run...littleblack1112025-05-311-1/+1
|
* internal: all CFileDescriptor is now wrapped in shared_ptrlittleblack1112025-05-314-18/+20
| | | | | shared_ptr operations are atomic good for multi threading
* style: remove unncessary Hyprutils::OS NSlittleblack1112025-05-316-13/+9
|
* style: clang-formatgithub-actions[bot]2025-05-302-2/+2
|
* fix(sessionManager): properly cleanup session with kick() instead of ↵littleblack1112025-05-301-2/+2
| | | | | | directly resetting this ensures all session.reset() be ran from kick()
* perf(session): directly use m_bDeaflittleblack1112025-05-301-14/+13
|
* style: clang-formatgithub-actions[bot]2025-05-271-1/+1
|
* commands: use type safe optional for reasonlittleblack1112025-05-271-16/+18
|
* style: clang-formatgithub-actions[bot]2025-05-271-1/+1
|
* fix: don't accept ascii seq(0x1B)littleblack1112025-05-272-1/+5
| | | | | | 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
* fix(1af5ffbfc646ccd116f1131f27bae3843eef406d): typo in comparisonlittleblack1112025-05-271-1/+1
| | | | msg.msg -> msg.username
* session(newMessaeg): specify .sender = thislittleblack1112025-05-271-1/+1
| | | | | fix bug in 4c23d3224d1820e72f072b2e4017c963a5c40fcb where no .sender specified will dupe
* fixup! feat: kick client (#6)littleblack1112025-05-241-0/+3
| | | | added comments and explaination
* style: clang-formatgithub-actions[bot]2025-05-211-2/+2
|
* session(write): write then restore readinglittleblack1112025-05-212-5/+8
|
* internal(session write): reuse the other write function as function overloadlittleblack1112025-05-211-12/+1
|
* fixup! feat: join and leave messagelittleblack1112025-05-211-1/+6
| | | | fix! unstable segfault when user leave without register
* Makefile: more debugging optionslittleblack1112025-05-211-7/+103
|
* style: clang-formatgithub-actions[bot]2025-05-216-11/+11
|
* feat: non-admin commandslittleblack1112025-05-215-12/+24
|
* command(/list): better formatting with session instance ptrlittleblack1112025-05-211-2/+4
|
* internal: prefer direct pointers instead of (uintptr_t) converted oneslittleblack1112025-05-214-6/+6
|
* feat: join and leave messagelittleblack1112025-05-217-18/+50
| | | | | internal: refactored messaging management, use instnace pointer for verification of session
* Makefile: pthread for debuglittleblack1112025-05-212-64/+57
| | | | Makefile: use default instead of afl-g++
* style: clang-formatgithub-actions[bot]2025-05-201-3/+3
|
* Revert "internal: use smart pointer for everything, no more naked pointer"littleblack1112025-05-204-31/+32
| | | | | | This reverts commit 72cf95bc9b1eb338457a0815eb1fe4f70b42ebb3. segfault/IOT instruct on client exit...
* internal: use uintptr_t of session instance for identificationlittleblack1112025-05-204-2/+5
|
* TODO: User UUIDlittleblack1112025-05-201-0/+1
|
* ci: move install deps into another filelittleblack1112025-05-022-18/+29
|
* perf(session): unecessary init of m_addrLenlittleblack1112025-04-121-2/+1
|
* scroller: fix sticky scrolllittleblack1112025-04-071-1/+1
|
* internal: use smart pointer for everything, no more naked pointerlittleblack1112025-04-074-32/+31
|
* internal(session::writeChat): also be bool, returns write()'s boollittleblack1112025-04-072-4/+5
|
* Revert "ftxui(logComponent): don't use custom patch to have a min_size but ↵littleblack1112025-04-071-3/+0
| | | | | | | offical way instead" This reverts commit 4a9232c9bea11750ff5e9b56a75b410eac2f020d. broke [scroller](https://github.com/ArthurSonzogni/git-tui/blob/master/src/scroller.cpp)
* session: use std::string for m_ip instead of c charlittleblack1112025-04-076-11/+13
|
* style: 2 -> 4 tabwidthlittleblack1112025-04-071-60/+60
|
* ftxui(logComponent): don't use custom patch to have a min_size but offical ↵littleblack1112025-04-071-0/+3
| | | | | | | way instead doesn't seem to work though(see https://github.com/ArthurSonzogni/FTXUI/pull/1028#issuecomment-2776497917)
* style: clang-formatgithub-actions[bot]2025-04-071-2/+4
|
* bump: TODOlittleblack1112025-04-071-0/+2
|
* style: clang-formatgithub-actions[bot]2025-04-074-7/+9
|
* fix: nullptr(SEGEV) during shutdownlittleblack1112025-04-073-8/+25
|
* refactor: loggingslittleblack1112025-04-077-12/+32
|
* fix(session): strerrno thread safetylittleblack1112025-04-071-1/+5
|