Back to Browse

Socket programming in Zig

9.5K views
Dec 15, 2023
3:34

Socket programming in Zig can be incredibly simple when compared with C. In this video, I'll dive into creating a simple socket server, sending HTTP information, and making the server multi-threaded. Disclaimer: This code is not production safe and just for educational purposes. You can find the code written in this video here: https://github.com/BrookJeynes/zig-socket-example/ Corrections are in the pinned ERRATA comment. Timestamps: - [0:00] Intro - [0:07] Imports - [0:13] StreamServer - [0:47] Listening for connections - [1:19] Accepting connections - [2:20] Running the server - [2:35] HTTP - [3:00] Threads - [3:26] Outro -------------------------------------------------------------- 🎵 Music "iced coffee" by ‘moonboy’ https://www.youtube.com/watch?v=FUVt6vnJcGc&t=0s 💿 Listen everywhere: https://ffm.to/icedcoffee ✅ For more Copyright Free Music visit: --------------------------------------------------------------

Download

0 formats

No download links available.

Socket programming in Zig | NatokHD