Separate modes of tcp handlers
This commit is contained in:
25
README.md
25
README.md
@@ -1,9 +1,15 @@
|
||||
# KQUEUE Utilization
|
||||
# Kernel Queue (kqueue) Utilization
|
||||
|
||||
This is your lame attempt to understand how those Network Virtual Functions sofware works as well to sharpen your understanding on C++ and C programming language.
|
||||
|
||||
## Why not [epoll]() or [select]()
|
||||
|
||||
Using epoll or select would make your system spend most of its time looking at and fiddling sith the data structures and has very little time for anything else.
|
||||
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
## Hints
|
||||
|
||||
- Compile using `g++` for the file watcher
|
||||
|
||||
@@ -13,8 +19,8 @@ The `kqueue_socket.c` is my attempt on create a socket watcher timer program usi
|
||||
|
||||
- [KQUEUE NETBSD GUIDE](https://wiki.netbsd.org/tutorials/kqueue_tutorial/)
|
||||
|
||||
```
|
||||
|
||||
```C
|
||||
// --------------------------------------------
|
||||
struct kevent my_event;
|
||||
struct kevent my_change;
|
||||
|
||||
@@ -23,13 +29,20 @@ The `kqueue_socket.c` is my attempt on create a socket watcher timer program usi
|
||||
for(;;){
|
||||
|
||||
...;
|
||||
|
||||
}
|
||||
|
||||
|
||||
```
|
||||
|
||||
### TCP 01
|
||||
|
||||
- Pointer of kevent
|
||||
|
||||
### TCP 02
|
||||
|
||||
- Array of kevent
|
||||
|
||||
## Goal
|
||||
|
||||
- Understand the difference between c++ and C
|
||||
- Understand how strcuct works and the difference between it on c++ and C
|
||||
- Understand
|
||||
|
||||
Reference in New Issue
Block a user