BSD sockets API explained

  Рет қаралды 808

Mongoose Networking Library

Mongoose Networking Library

Күн бұрын

Пікірлер: 13
@zianwar_
@zianwar_ 6 ай бұрын
Hi Sergey, I appreciate you sharing your knowledge, this content is so good! 1. You give useful historical context; I never knew why the "select" system call exists until now :) 2. You tend to simplify in your explanation and programs which is so delightful.
@mongoose-networking-library
@mongoose-networking-library 6 ай бұрын
You are welcome!
@StevenHokins
@StevenHokins 5 ай бұрын
Very nice, thank you
@shefiroth12
@shefiroth12 7 ай бұрын
finished the vid, very useful. thanks
@КонстантинАнтипов-д3о
@КонстантинАнтипов-д3о 3 ай бұрын
After closing any socket connection program finishes with an error: "Segmentation fault (core dumped)", what can be the reason why it happens?
@mongoose-networking-library
@mongoose-networking-library 3 ай бұрын
Please respond to the gist with details on your environment, and how to reproduce it!
@КонстантинАнтипов-д3о
@КонстантинАнтипов-д3о 3 ай бұрын
​@@mongoose-networking-library I'm using Oracle VM with Ubuntu 24.04 LTS on it. Trying to make tcp communication service for embedded stm32 device, but testing program currently on Ubuntu first. So when I compiling example, that was showed in the video, there are no errors, but when I testing compiled app with netcat or "curl" command it response with current date and time, but slightly after socket close operation, receiving "Segmentation fault (core dumped)" error and app automatically closing (dropping every other connections) and I need to restart it. btw, tested it on my embedded stm32 linux device and got same error.
@КонстантинАнтипов-д3о
@КонстантинАнтипов-д3о 3 ай бұрын
I'm using Oracle VM with Ubuntu 24.04 LTS on it. Making tcp communication service for embedded stm32 device, but testing program currently on Ubuntu first. So when I compiling example, that was showed in the video, there are no errors, but when I testing compiled app with netcat or "curl" command it response with current date and time, but slightly after socket close operation, receiving "Segmentation fault (core dumped)" error and app automatically closing (dropping every other connections) and I need to restart it. btw, tested it on my embedded stm32 linux device and got same error. UPD: this issue fixes by deleting: "free(c);" at close function, but I think it will cause memory troubles later, maybe there is better way to solve it.
@КонстантинАнтипов-д3о
@КонстантинАнтипов-д3о 3 ай бұрын
UPD#2: fixed it by replacing in add_connection() function "calloc" of conn *c by this: struct conn *c; c = (struct conn *) calloc(1, sizeof(struct conn)); Now "free(c);" function working properly and do not crushes my app.
@mongoose-networking-library
@mongoose-networking-library 3 ай бұрын
@@КонстантинАнтипов-д3о Thank you! Yes, there was a bug in the connection deletion - gist updated, please confirm!
@TheMadProgrammersOfficial
@TheMadProgrammersOfficial 2 ай бұрын
how does this not have a million views? only 549 i mean come on
@mongoose-networking-library
@mongoose-networking-library 2 ай бұрын
Share it with your colleagues :)
Mongoose Primer: Events
15:00
Mongoose Networking Library
Рет қаралды 309
TLS for microcontrollers explained
9:53
Mongoose Networking Library
Рет қаралды 183
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Embedded TCP/IP stack explained: step-by-step code walk-through
1:59:47
Mongoose Networking Library
Рет қаралды 9 М.
I built a real HTTP sever in ARM assembly in under 200 lines
22:34
Web UI on STM32 from scratch :: Cube IDE :: Device dashboard explained
53:04
Mongoose Networking Library
Рет қаралды 3,9 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Ethernet Web Server with STM32 & W5500 Tutorial | Mongoose WS API
14:05
Remote firmware updates for microcontrollers explained
9:11
Mongoose Networking Library
Рет қаралды 1,1 М.
Webinar: IoT fleet management from scratch on STM32 using MQTT
1:01:46
Mongoose Networking Library
Рет қаралды 1,6 М.
His Wife Threw his Gaming PC out the Window… Can I Fix It?
19:43
Linus Tech Tips
Рет қаралды 940 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН