🌐 Network Programming in Rust - Building a TCP Server

  Рет қаралды 16,980

Bek Brace

Bek Brace

Күн бұрын

Пікірлер: 60
@dantesbytes
@dantesbytes 8 ай бұрын
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 8 ай бұрын
Thanks so much for these words🙏. Indeed I've written it myself 🙂
@bEan-cf7mx
@bEan-cf7mx 8 ай бұрын
Can you make a video about Tokio please :)
@BekBrace
@BekBrace 8 ай бұрын
Certainly )) Thanks for suggestion
@orrenjenkins289
@orrenjenkins289 8 ай бұрын
5:15 std::io::Read and std::io::Write are traits in the std::io module
@AchroDev
@AchroDev 3 ай бұрын
Love the video! Thanks for sharing your knowledge. I think it would have been better for the address to have been stored as a variable. This helps with a couple of things, but mostly saving you from re-writing the same string over and over. let address = "127.0.0.1:8080"; let listener = TcpListener::bind(address).expect("Failed to bind to address: {address}"); println!("Server listening on {}", address);
@BekBrace
@BekBrace Ай бұрын
Absolutely. Thanks for the better code snippet.
@anashe5417
@anashe5417 4 ай бұрын
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 4 ай бұрын
Thank you very very much for your kind words ❤️🙏 Your feedback is what pushes me forward to create more and more content | ••• Thank You !!!
@jaysoni93
@jaysoni93 10 ай бұрын
When is the next video coming In this series ?
@BekBrace
@BekBrace 10 ай бұрын
Next Month, there will be a new video in the series, thank you for your patience.
@mohaniya15
@mohaniya15 11 ай бұрын
Great video, I have just started with Rust videos on my channel, this really helped me.
@BekBrace
@BekBrace 11 ай бұрын
Great my friend ! Cool channel by the way, good luck in your journey 😀
@VasilMagaranov
@VasilMagaranov 5 ай бұрын
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…
@8rupees718
@8rupees718 6 ай бұрын
What extentions do you use for rust?
@BekBrace
@BekBrace 6 ай бұрын
just Rust Analyzer
@8rupees718
@8rupees718 6 ай бұрын
@@BekBrace Thankyou Very much
@BekBrace
@BekBrace 6 ай бұрын
Anytime 😊
@xsamuelx3603
@xsamuelx3603 11 ай бұрын
What's your terminal setup?
@BekBrace
@BekBrace 11 ай бұрын
Yo .. check out my video: PowerShell Terminal Setup - all explained there/ peace
@symshark
@symshark 7 ай бұрын
This was great, looking forward for the Tokio tutorial!
@xsamuelx3603
@xsamuelx3603 11 ай бұрын
Amazing video, my friend :)
@BekBrace
@BekBrace 11 ай бұрын
Thank you very much 🙏🙏🙏
@HumanoidTyphoon91
@HumanoidTyphoon91 5 ай бұрын
Hate to be that guy, but what's your color theme? It looks amazing!
@BekBrace
@BekBrace 5 ай бұрын
No problem at all, my friend anything you want 🙂 the theme is VIM dark
@iamprincemuel
@iamprincemuel Ай бұрын
​@@BekBrace Hi, can't find the theme in the Vscode marketplace
@svetlana9699
@svetlana9699 11 ай бұрын
🔥🔥🔥
@BekBrace
@BekBrace 11 ай бұрын
Thank you 😊😊😊
@anthonywilliams9334
@anthonywilliams9334 6 ай бұрын
Excellently executed tutorial. Blow by blow, line by line. Subscribed.
@BekBrace
@BekBrace 6 ай бұрын
Thank you so much, Anthony 🙏🙂
@BRISKLYHIDDEN
@BRISKLYHIDDEN 11 ай бұрын
Slam Dunk 🏀
@BekBrace
@BekBrace 11 ай бұрын
Yeaaaah
@shivanshuraj7175
@shivanshuraj7175 2 ай бұрын
How you can handle more than one connection without a loop encapsulating tcp incomming?....
@xtremistdude92
@xtremistdude92 2 ай бұрын
Create separate threads to handle each client
@BekBrace
@BekBrace 20 күн бұрын
you got your answer already I see
@abayaz61
@abayaz61 7 ай бұрын
amazing content. please continue to rust series
@BekBrace
@BekBrace 7 ай бұрын
Hey! Thank you so much: More Rust to come!
@cahwardev9804
@cahwardev9804 11 ай бұрын
Amazing video! What is the font and the color theme that used in the video?
@BekBrace
@BekBrace 11 ай бұрын
Thank you. Theme: Bearded Theme Black & Ruby Font: Caskadiya Cove
@Pennipurilainen
@Pennipurilainen Ай бұрын
​@@BekBraceAre you sure? Cause they look way different for me.
@chaudharypraveen98
@chaudharypraveen98 6 ай бұрын
Thank you so much for depth knowledge
@BekBrace
@BekBrace 6 ай бұрын
I am so glad you enjoyed it
@nalayak862
@nalayak862 10 ай бұрын
i am just three days into rust and i will still watch it
@BekBrace
@BekBrace 10 ай бұрын
Good luck and happy coding
@vlad_the_player
@vlad_the_player 5 ай бұрын
That's so interesting 😁
@BekBrace
@BekBrace 5 ай бұрын
Thank you very much 👋☺️
@MPAXEL
@MPAXEL 11 ай бұрын
can't wait :)
@BekBrace
@BekBrace 11 ай бұрын
See You :)
@simonkalu
@simonkalu 7 ай бұрын
Wow! very precise and clear.
@BekBrace
@BekBrace 7 ай бұрын
Thank you
@asimwelandry9215
@asimwelandry9215 9 ай бұрын
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 9 ай бұрын
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 ?
@kjakkakakka
@kjakkakakka Ай бұрын
Theme?
@BekBrace
@BekBrace Ай бұрын
Don't remember, sorry
@skyeplus
@skyeplus 7 ай бұрын
Hi. Isn't [0; 1024] mean 1024 ints? Or the type is being adjusted to u8 after it's use in read()?
@BekBrace
@BekBrace 7 ай бұрын
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 7 ай бұрын
​@@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 11 ай бұрын
Awesome video! May I ask the font name and color theme name? Thanks.
@BekBrace
@BekBrace 11 ай бұрын
Thank you! Theme: Bearded Theme Black & Ruby Font: Caskadiya Cove
Tonic makes gRPC in Rust stupidly simple
19:08
Dreams of Code
Рет қаралды 49 М.
ОТОМСТИЛ МАМЕ ЗА ЧИПСЫ🤯#shorts
00:44
INNA SERG
Рет қаралды 4,7 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 2 МЛН
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,9 МЛН
How To Build A Custom TCP Server In Golang!?
19:32
Anthony GG
Рет қаралды 29 М.
Rust Powered Polymorphism ⚡️ With Traits
9:55
Code to the Moon
Рет қаралды 100 М.
Async Rust Is A Bad Language | Prime Reacts
28:46
ThePrimeTime
Рет қаралды 98 М.
iced GUI | Rust Language
17:00
Learning Rust
Рет қаралды 7 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 338 М.
Embedded Rust setup explained
23:03
The Rusty Bits
Рет қаралды 85 М.
Building a Web Server in Rust - Part 1
16:19
Let's Get Rusty
Рет қаралды 88 М.
When you Accidentally Compromise every CPU on Earth
15:59
Daniel Boctor
Рет қаралды 830 М.
Rust: When C Code Isn't Enough
8:26
CodeAhead
Рет қаралды 168 М.
rust runs on EVERYTHING (no operating system, just Rust)
18:10
Low Level
Рет қаралды 358 М.
Что лучше ноутбук или ПК в бюджете 100к?
0:34
Emergency Phone Wireless Charger
0:36
IAM
Рет қаралды 1,7 МЛН
Давайте поцарапаем iPhone 16 Pro Max!
0:57
Wylsacom
Рет қаралды 2,3 МЛН
Hardware tools repair tool high performance tool
0:16
Hardware tools
Рет қаралды 3,2 МЛН
iPhone 7
0:13
ARGEN
Рет қаралды 12 МЛН
Выпрыгивает ли аккумулятор в iPhone 16?
0:43
ÉЖИ АКСЁНОВ
Рет қаралды 2,9 МЛН