How to Write a Linux Daemon from Start to Finish!

  Рет қаралды 82,415

hoff._world

hoff._world

Күн бұрын

Linux Daemons, Services, whatever you wanna call em. Let's make one! We're going to make a file event watcher with inotify that sends desktop notifications to the user.
Multithreaded socket server tutorial: • How to Write a Socket ...
Custom network protocol tutorial: • Implementing a Network...
inotify man page: man7.org/linux/man-pages/man7...
libnotify docs: developer-old.gnome.org/libno...
archwiki notify: wiki.archlinux.org/title/Desk...
rolexhound src: hoff.industries/files/rolexho...
Editor: Kate (xoxo KDE)
Colours: Dracula
LSP Server: clangd
Chapters:
0:00 - Intro
1:07 - What is our Daemon going to do?
2:02 - Libraries and System Calls
5:25 - Project Naming
6:09 - Including Headers
6:54 - Exit Codes
7:45 - Shell Arguments
9:22 - Sprinkling of Memory Management
13:50 - Daemon Main Loop
14:45 - File Events with Inotify
16:00 - Blocking vs Non-blocking Operations
17:05 - Initialising Inotify
20:00 - Introduction to Bitmasking
21:29 - What Filesystem Events can we monitor?
22:07 - Watching a file with Inotify
24:40 - Handling Inotify Events
37:05 - Wiring it up to Desktop Notifications
44:30 - Testing Desktop Notifications
45:25 - Testing with Accessing an SSH Identity
45:58 - Signal Handling and Shutdown Handling
49:25 - Summary and Outro

Пікірлер: 361
THREADS - Program in Parallel!
28:17
hoff._world
Рет қаралды 1,6 М.
Why I Use Linux - It's Not What You Think
10:35
hoff._world
Рет қаралды 9 М.
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 25 МЛН
Каха ограбил банк
01:00
К-Media
Рет қаралды 10 МЛН
How to Actually Start a Software Project!
27:45
hoff._world
Рет қаралды 6 М.
Why macOS Makes Me Sad - Macs & Hackintosh
24:31
hoff._world
Рет қаралды 2,8 М.
Implementing a Network Protocol in C from Start to Finish!
1:22:52
hoff._world
Рет қаралды 4,9 М.
42 days of vision pro coding: DOOM (home makeover edition) | devlog #6
6:35
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 917 М.
Shape Engine - 1.0 Release
2:57
Dave Green Games
Рет қаралды 3,8 М.
Getting Good at Programming
13:23
hoff._world
Рет қаралды 4,1 М.
unlock the lowest levels of coding
7:05
Low Level Learning
Рет қаралды 231 М.
How to Design a Network Messaging Protocol!
24:14
hoff._world
Рет қаралды 11 М.
CONCURRENCY IS NOT WHAT YOU THINK
16:59
Core Dumped
Рет қаралды 87 М.
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,2 МЛН
💅🏻Айфон vs Андроид🤮
0:20
Бутылочка
Рет қаралды 714 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН