mirror of
https://github.com/m1ngsama/TNT.git
synced 2025-12-24 10:51:41 +00:00
New files: - HACKING - Architecture, debugging, common pitfalls - QUICKREF - One-page reference card - Updated CHANGELOG.md with recent fixes - Updated README.md with development section HACKING covers: - Build system - Test procedures - Memory debugging (asan, valgrind) - Thread safety rules - Architecture overview - Known limits - Common bugs to avoid - Feature addition guide QUICKREF provides: - Quick build commands - Test commands - Debug procedures - File structure - System limits Follows minimalist Unix documentation philosophy. No fluff, just facts.
37 lines
837 B
Text
37 lines
837 B
Text
TNT Quick Reference
|
|
===================
|
|
|
|
BUILD
|
|
make production build
|
|
make debug debug symbols
|
|
make asan memory sanitizer
|
|
make release optimized + stripped
|
|
make clean remove artifacts
|
|
|
|
TEST
|
|
./test_basic.sh basic functionality
|
|
./test_stress.sh 20 60 stress test (20 clients, 60s)
|
|
|
|
DEBUG
|
|
ASAN_OPTIONS=detect_leaks=1 ./tnt
|
|
valgrind --leak-check=full ./tnt
|
|
make check
|
|
|
|
STRUCTURE
|
|
src/main.c entry, signals
|
|
src/ssh_server.c SSH, threads
|
|
src/chat_room.c broadcast
|
|
src/message.c persistence
|
|
src/tui.c rendering
|
|
src/utf8.c unicode
|
|
|
|
LIMITS
|
|
64 clients max
|
|
100 messages in RAM
|
|
1024 bytes/message
|
|
|
|
FILES
|
|
HACKING dev guide
|
|
CHANGELOG.md changes
|
|
messages.log chat log
|
|
host_key SSH key
|