🌐 Network Programming in Rust - Building a TCP Server

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 66

  • @dantesbytes
    @dantesbytes 10 месяцев назад +23

    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  10 месяцев назад +4

      Thanks so much for these words🙏. Indeed I've written it myself 🙂

  • @pabloalic6393
    @pabloalic6393 10 дней назад

    This video is crazy high quality! Everything explained crystal clear, loved it!

    • @BekBrace
      @BekBrace  10 дней назад

      Wow, thank you!

  • @orrenjenkins289
    @orrenjenkins289 10 месяцев назад +5

    5:15 std::io::Read and std::io::Write are traits in the std::io module

  • @anthonywilliams9334
    @anthonywilliams9334 8 месяцев назад +1

    Excellently executed tutorial. Blow by blow, line by line. Subscribed.

    • @BekBrace
      @BekBrace  8 месяцев назад

      Thank you so much, Anthony 🙏🙂

  • @symshark
    @symshark 9 месяцев назад +1

    This was great, looking forward for the Tokio tutorial!

  • @anashe5417
    @anashe5417 6 месяцев назад +1

    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  6 месяцев назад

      Thank you very very much for your kind words ❤️🙏 Your feedback is what pushes me forward to create more and more content | ••• Thank You !!!

  • @simonkalu
    @simonkalu 9 месяцев назад +1

    Wow! very precise and clear.

  • @xsamuelx3603
    @xsamuelx3603 Год назад +2

    Amazing video, my friend :)

    • @BekBrace
      @BekBrace  Год назад +1

      Thank you very much 🙏🙏🙏

  • @bEan-cf7mx
    @bEan-cf7mx 10 месяцев назад +5

    Can you make a video about Tokio please :)

    • @BekBrace
      @BekBrace  10 месяцев назад +1

      Certainly )) Thanks for suggestion

  • @chaudharypraveen98
    @chaudharypraveen98 8 месяцев назад +1

    Thank you so much for depth knowledge

    • @BekBrace
      @BekBrace  8 месяцев назад

      I am so glad you enjoyed it

  • @nalayak862
    @nalayak862 Год назад +1

    i am just three days into rust and i will still watch it

    • @BekBrace
      @BekBrace  Год назад

      Good luck and happy coding

  • @MPAXEL
    @MPAXEL Год назад +2

    can't wait :)

  • @mohaniya15
    @mohaniya15 Год назад +1

    Great video, I have just started with Rust videos on my channel, this really helped me.

    • @BekBrace
      @BekBrace  Год назад

      Great my friend !
      Cool channel by the way, good luck in your journey 😀

  • @abayaz61
    @abayaz61 9 месяцев назад +1

    amazing content. please continue to rust series

    • @BekBrace
      @BekBrace  9 месяцев назад

      Hey! Thank you so much: More Rust to come!

  • @AchroDev
    @AchroDev 5 месяцев назад +1

    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  3 месяца назад +1

      Absolutely.
      Thanks for the better code snippet.

  • @vladyslav-py-js-cs
    @vladyslav-py-js-cs 7 месяцев назад +1

    That's so interesting 😁

    • @BekBrace
      @BekBrace  7 месяцев назад

      Thank you very much 👋☺️

  • @svetlana9699
    @svetlana9699 Год назад +2

    🔥🔥🔥

    • @BekBrace
      @BekBrace  Год назад

      Thank you 😊😊😊

  • @HumanoidTyphoon91
    @HumanoidTyphoon91 7 месяцев назад +1

    Hate to be that guy, but what's your color theme? It looks amazing!

    • @BekBrace
      @BekBrace  7 месяцев назад

      No problem at all, my friend anything you want 🙂 the theme is VIM dark

    • @iamprincemuel
      @iamprincemuel 2 месяца назад

      ​@@BekBrace Hi, can't find the theme in the Vscode marketplace

  • @jaysoni93
    @jaysoni93 Год назад +2

    When is the next video coming In this series ?

    • @BekBrace
      @BekBrace  Год назад

      Next Month, there will be a new video in the series, thank you for your patience.

  • @VasilMagaranov
    @VasilMagaranov 6 месяцев назад

    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 Год назад +1

    Slam Dunk 🏀

  • @cahwardev9804
    @cahwardev9804 Год назад +1

    Amazing video! What is the font and the color theme that used in the video?

    • @BekBrace
      @BekBrace  Год назад

      Thank you.
      Theme: Bearded Theme Black & Ruby
      Font: Caskadiya Cove

    • @Pennipurilainen
      @Pennipurilainen 3 месяца назад

      ​@@BekBraceAre you sure? Cause they look way different for me.

  • @xsamuelx3603
    @xsamuelx3603 Год назад +1

    What's your terminal setup?

    • @BekBrace
      @BekBrace  Год назад +1

      Yo .. check out my video: PowerShell Terminal Setup - all explained there/ peace

  • @8rupees718
    @8rupees718 8 месяцев назад +1

    What extentions do you use for rust?

    • @BekBrace
      @BekBrace  8 месяцев назад +1

      just Rust Analyzer

    • @8rupees718
      @8rupees718 8 месяцев назад

      @@BekBrace Thankyou Very much

    • @BekBrace
      @BekBrace  8 месяцев назад +1

      Anytime 😊

  • @skyeplus
    @skyeplus 9 месяцев назад

    Hi. Isn't [0; 1024] mean 1024 ints? Or the type is being adjusted to u8 after it's use in read()?

    • @BekBrace
      @BekBrace  9 месяцев назад +1

      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 9 месяцев назад

      ​@@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 Год назад

    Awesome video! May I ask the font name and color theme name? Thanks.

    • @BekBrace
      @BekBrace  Год назад +1

      Thank you!
      Theme: Bearded Theme Black & Ruby
      Font: Caskadiya Cove

  • @shivanshuraj7175
    @shivanshuraj7175 4 месяца назад

    How you can handle more than one connection without a loop encapsulating tcp incomming?....

    • @xtremistdude92
      @xtremistdude92 4 месяца назад

      Create separate threads to handle each client

    • @BekBrace
      @BekBrace  2 месяца назад

      you got your answer already I see

  • @kjakkakakka
    @kjakkakakka 3 месяца назад

    Theme?

    • @BekBrace
      @BekBrace  3 месяца назад

      Don't remember, sorry

  • @asimwelandry9215
    @asimwelandry9215 11 месяцев назад

    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  11 месяцев назад

      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 ?

  • @DEBBAH1907
    @DEBBAH1907 24 дня назад

    bruh, you don't need to write "this line" before everyone comment...

    • @BekBrace
      @BekBrace  24 дня назад

      @@DEBBAH1907 bruh, you can simply ignore it, bruh

  • @PozovShmon
    @PozovShmon 3 дня назад +1

    Было бы это на русском еще, былоб вау

    • @BekBrace
      @BekBrace  2 дня назад

      Спасибо. Подумаю))