comparison README.md @ 33:c0f6c8c7829f

[Seobeo] Linux epoll. Set the client socket to be nonblocking so that it doesn't stop loading when two different threads handle different client calls. I might have problem with socket not being cleaned up properly so need to check that.
author MrJuneJune <me@mrjunejune.com>
date Fri, 10 Oct 2025 06:59:32 -0700
parents 947b81010aba
children 043018c0f2f8
comparison
equal deleted inserted replaced
32:08a465eec50b 33:c0f6c8c7829f
1 # Zenbu 1 # Zenbu
2 2
3 This is a mono repo where I will share all my codes and utilize them using bazel. 3 This is a mono repo where I will share all my codes and utilize them using bazel. I decied to do this since I re-use codes often and I don't want to deal with making make and cmake every time and this eliminates the problem that exists within C or C++ where using library is harder as we need to add gzillian stuff into it lmao.
4 I decied to do this since I re-use codes often and I don't want to deal with making make
5 and cmake every time and this eliminates the problem that exists within C or C++ where using
6 library is harder as we need to add gzillian stuff into it lmao.
7 4
8 # Debugging Command 5
6 ## Install
7
8 I decide to use mercurial because I got used to this over git and I frankly don't need different branches for each feature to be merged in.
9 I also decied to use the bazel for code sharing as I mentioned above.
10
11 ```
12 # linux
13 wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64 # Hope it still works lmao
14 chmod +x bazelisk-linux-amd64
15 sudo mv bazelisk-linux-amd64 /usr/local/bin/bazel
16 bazel version
17
18 # mac
19 brew install bazel
20 ```
21
22 I might move these binary into the repo so that it has full history of it
23
24 I assume mercurial is installed as well.
25
26 ## Debugging Command
9 27
10 ```bash 28 ```bash
11 bazel build target -c dbg 29 bazel build target -c dbg
12 i.e) bazel build //mrjunejune:mrjunejune_server -c dbg 30 i.e) bazel build //mrjunejune:mrjunejune_server -c dbg
13 ``` 31 ```
17 ```bash 35 ```bash
18 bazel run //dowa:dowa_test --run_under="valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes" 36 bazel run //dowa:dowa_test --run_under="valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes"
19 ``` 37 ```
20 38
21 39
40 ## This is for memory leak cheak in MacOS
41
22 brew install valgrind 42 brew install valgrind
23 # or use the unofficial ARM build: 43 # or use the unofficial ARM build:
24 arch -x86_64 brew install valgrind 44 arch -x86_64 brew install valgrind
25 arch -x86_64 valgrind ./test 45 arch -x86_64 valgrind ./test