Тёмный

🌐 Network Programming in Rust - Building a TCP Server 

Bek Brace
Подписаться 28 тыс.
Просмотров 12 тыс.
50% 1

📺 Welcome to another exciting Rust programming tutorial!
In this video, we'll explore the fundamentals of networking in Rust by building a simple TCP server. We'll walk you through the code snippet provided, explaining each key component and step along the way. Let's get started!
⚠️ It’s very easy to help the channel ⚠️
➊ Like 👍 or 👎 the video
➋ Write a comment 💬 under the video (I answer almost everyone)
➌ Send video ✉️ to friends via social networks
➍ Watch the rest of the videos 🎥 on the channel.
✔️Every completed item makes the channel better!
Thanks friends! 🤝 🤗 👐
⏱️ Timestamps:
00:00 - Introduction
01:07 - ABCs of Networking
03:32 - Code Explanation & Walkthrough
18:58 - Testing and debugging
20:01 - Handling Client Connections
21:23 - Outro
🔗 Code Snippet:
You can find the code used in this tutorial on GitHub: github.com/BekBrace/rust-tcp-...
In this Rust networking tutorial, you will learn:
1️⃣ How to import necessary modules from the Rust standard library for networking.
2️⃣ Handling client connections using the handle_client function, which reads data from clients, processes it, and sends a response.
3️⃣ Binding a TCP listener to address "127.0.0.1:8080" and listening for incoming connections.
4️⃣ Using multithreading to handle multiple client connections concurrently.
By the end of this video, you'll have a clear understanding of how to create a basic TCP server in Rust and how to handle client requests. Don't forget to like, subscribe, and hit the notification bell to stay updated with more Rust programming tutorials!
🔗 GitHub Repository:
github.com/BekBrace/rust-tcp-...
🔗 Readme.md: github.com/BekBrace/rust-tcp-...
🔗 Telegram Channel: t.me/bekbrace
🔗 Instagram: / bek_brace
🔗 Twitter: / bekbrace
#RustProgramming #NetworkingInRust #TCP #RustTutorial #RustServer #RustNetworkingTutorial #LearnRust #programmingtutorial
Join this channel to get access to perks:
/ @bekbrace

Наука

Опубликовано:

 

26 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 51   
@dantesbytes
@dantesbytes 5 месяцев назад
the fact that you explained everything line by line is priceless, I'm confindent that you wrote this yourself unlike 99% of the vidoes i come across on youtube seems like most of them don't have clue as to what they are teaching .
@BekBrace
@BekBrace 5 месяцев назад
Thanks so much for these words🙏. Indeed I've written it myself 🙂
@MPAXEL
@MPAXEL 8 месяцев назад
can't wait :)
@BekBrace
@BekBrace 8 месяцев назад
See You :)
@orrenjenkins289
@orrenjenkins289 5 месяцев назад
5:15 std::io::Read and std::io::Write are traits in the std::io module
@symshark
@symshark 3 месяца назад
This was great, looking forward for the Tokio tutorial!
@chaudharypraveen98
@chaudharypraveen98 3 месяца назад
Thank you so much for depth knowledge
@BekBrace
@BekBrace 3 месяца назад
I am so glad you enjoyed it
@simonkalu
@simonkalu 3 месяца назад
Wow! very precise and clear.
@BekBrace
@BekBrace 3 месяца назад
Thank you
@anthonywilliams9334
@anthonywilliams9334 3 месяца назад
Excellently executed tutorial. Blow by blow, line by line. Subscribed.
@BekBrace
@BekBrace 3 месяца назад
Thank you so much, Anthony 🙏🙂
@anashe5417
@anashe5417 Месяц назад
this video it's just perfect, I have no words to describe how amazing this is. Thanks a lot and the way you teach these things is just incredible.
@BekBrace
@BekBrace Месяц назад
Thank you very very much for your kind words ❤️🙏 Your feedback is what pushes me forward to create more and more content | ••• Thank You !!!
@svetlana9699
@svetlana9699 8 месяцев назад
🔥🔥🔥
@BekBrace
@BekBrace 8 месяцев назад
Thank you 😊😊😊
@mohaniya15
@mohaniya15 8 месяцев назад
Great video, I have just started with Rust videos on my channel, this really helped me.
@BekBrace
@BekBrace 8 месяцев назад
Great my friend ! Cool channel by the way, good luck in your journey 😀
@xsamuelx3603
@xsamuelx3603 8 месяцев назад
Amazing video, my friend :)
@BekBrace
@BekBrace 8 месяцев назад
Thank you very much 🙏🙏🙏
@volodyslove
@volodyslove 2 месяца назад
That's so interesting 😁
@BekBrace
@BekBrace 2 месяца назад
Thank you very much 👋☺️
@bEan-cf7mx
@bEan-cf7mx 5 месяцев назад
Can you make a video about Tokio please :)
@BekBrace
@BekBrace 4 месяца назад
Certainly )) Thanks for suggestion
@HumanoidTyphoon91
@HumanoidTyphoon91 Месяц назад
Hate to be that guy, but what's your color theme? It looks amazing!
@BekBrace
@BekBrace Месяц назад
No problem at all, my friend anything you want 🙂 the theme is VIM dark
@nalayak862
@nalayak862 7 месяцев назад
i am just three days into rust and i will still watch it
@BekBrace
@BekBrace 7 месяцев назад
Good luck and happy coding
@abayaz61
@abayaz61 4 месяца назад
amazing content. please continue to rust series
@BekBrace
@BekBrace 4 месяца назад
Hey! Thank you so much: More Rust to come!
@cahwardev9804
@cahwardev9804 8 месяцев назад
Amazing video! What is the font and the color theme that used in the video?
@BekBrace
@BekBrace 8 месяцев назад
Thank you. Theme: Bearded Theme Black & Ruby Font: Caskadiya Cove
@VasilMagaranov
@VasilMagaranov Месяц назад
What happens, if the buffer is not large enough to read the whole message from the stream? I tried reading twice and concatenate the results into the string, but it didn’t seem to work…
@BRISKLYHIDDEN
@BRISKLYHIDDEN 8 месяцев назад
Slam Dunk 🏀
@BekBrace
@BekBrace 8 месяцев назад
Yeaaaah
@skyeplus
@skyeplus 4 месяца назад
Hi. Isn't [0; 1024] mean 1024 ints? Or the type is being adjusted to u8 after it's use in read()?
@BekBrace
@BekBrace 4 месяца назад
So, when you see 0; 1024, think of it as a space reserved for 1024 elements. It's like having a box with 1024 slots, ready to store stuff. You know what I mean ? And what type of stuff goes in those slots depends on what you're doing with them.
@skyeplus
@skyeplus 4 месяца назад
​@@BekBrace​I found the answer: "Unsuffixed literal, their types depend on how they are used". So 0 literal retroactively binds to u8 a fine grained type upon buffer use in read().
@harbi.delikanli
@harbi.delikanli 8 месяцев назад
Awesome video! May I ask the font name and color theme name? Thanks.
@BekBrace
@BekBrace 8 месяцев назад
Thank you! Theme: Bearded Theme Black & Ruby Font: Caskadiya Cove
@jaysoni93
@jaysoni93 7 месяцев назад
When is the next video coming In this series ?
@BekBrace
@BekBrace 7 месяцев назад
Next Month, there will be a new video in the series, thank you for your patience.
@xsamuelx3603
@xsamuelx3603 8 месяцев назад
What's your terminal setup?
@BekBrace
@BekBrace 8 месяцев назад
Yo .. check out my video: PowerShell Terminal Setup - all explained there/ peace
@8rupees718
@8rupees718 3 месяца назад
What extentions do you use for rust?
@BekBrace
@BekBrace 3 месяца назад
just Rust Analyzer
@8rupees718
@8rupees718 3 месяца назад
@@BekBrace Thankyou Very much
@BekBrace
@BekBrace 3 месяца назад
Anytime 😊
@asimwelandry9215
@asimwelandry9215 5 месяцев назад
can you makea vid on how to make your device a priority and if possible involving the use of rustlang if it get uploaded can you please tag me or forward link as a reply
@BekBrace
@BekBrace 5 месяцев назад
Hi and thank you for this question. So, to prioritize your device using Rust, you can leverage Rust's thread module to set thread priorities through std::thread::Builder. Alternatively, for more granular control, use the libc crate to interact with the operating system API, allowing you to set process or thread priorities directly. Remember to test your application, monitor system behavior, and adjust priorities cautiously to avoid adverse effects on overall system performance and stability. Have I answered your question ?
Далее
Tonic makes gRPC in Rust stupidly simple
19:08
Просмотров 41 тыс.
How To Build A Custom TCP Server In Golang!?
19:32
Просмотров 24 тыс.
I never thought I'd use Socket.io ever again
14:02
Просмотров 86 тыс.
Creating a Chat Server with async Rust and Tokio
53:44
Async Rust Is A Bad Language | Prime Reacts
28:46
Просмотров 88 тыс.
Rust Functions Are Weird (But Be Glad)
19:52
Просмотров 128 тыс.
Rust Demystified 🪄 Simplifying The Toughest Parts
14:05
Самый СТРАННЫЙ смартфон!
0:57
Просмотров 24 тыс.