Mastering TCPListener in C#: Building Network Applications from Scratch

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024
  • #dotnet #csharp #.NET #softwaredevelopment
    Learn how to build powerful network applications using TCPListener in C#. In this tutorial, you'll discover the essentials of TCP/IP networking and explore the capabilities of TCPListener, a crucial class for handling incoming TCP connections and facilitating communication over the network.
    Follow along as I provide step-by-step guidance on setting up a TCPListener, managing client connections, and exchanging data efficiently. Gain a solid understanding of the underlying concepts and techniques required to create your own network applications.

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

  • @theinvertedworld.
    @theinvertedworld. 24 дня назад +2

    hello world is such a perfect greeting for a programming channel.

  • @redmundperrz7234
    @redmundperrz7234 5 месяцев назад +2

    This is gold

  • @Ocean7653
    @Ocean7653 Месяц назад

    Great video! Please share some recommended text for networking with c#

  • @4dwaffle650
    @4dwaffle650 4 месяца назад +2

    14:57 it prints twice, because PuTTY sends your message without "
    " and then sends "
    " as a new one.

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

    Subscribed. Thank you for the great video.

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

      You're very welcome!

    • @manny27392
      @manny27392 5 месяцев назад

      @@nickproudprogrammersubscribed too, would be interesting to make a video where you focus on parsing headers and respond with http codes depending on the situation. For example, when you sent “SUCCESSFULLY CONNECTED” in the video, could you have sent an http code 200 instead of a string confirming the connection?

  • @user-ok7mi5uz2p
    @user-ok7mi5uz2p 5 дней назад

    How do you instance worker class into main method of the program.cs???

  • @HanNgoc-rr5bo
    @HanNgoc-rr5bo 3 месяца назад

    thanks for the video. How can we use tcp sever to transfer a large file (about 10gb) to the client ?

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

    Thanks for sharing the valuable info! But how are you going to gracefully shutdown TcpListener being launched inside worker service?

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

    Great Video!

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

    What type of project is the Demoworker. Is it a console or is there a Worker project you need

  • @MDBoss-fv2eu
    @MDBoss-fv2eu 3 месяца назад

    What's the backing intro

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

    such a low level things i was missing rather than signal r everywhere

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

      Yeah it's easy to get stuck at the higher levels of abstraction

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

    Nevermind I think I found it. It is a worker Service project

  • @user-ts8zy7ev1q
    @user-ts8zy7ev1q 10 месяцев назад

    how to call Worker class with program.cs ?

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

      The author says he created a Worker Service Project. You can find it in Visual Studio templates when you create a new project. Otherwise, you can instantiate the Worker class in Program.cs. The easiest way would be to write var worker = new Worker(); await worker.ExecuteAsync();

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

    How is this from scratch? you're using libraries of code that other people have already written.

    • @paca3107
      @paca3107 8 месяцев назад +2

      whaat? so He had to write in assembly or even in machine code to call it "from scratch"

    • @pedramkavian
      @pedramkavian 8 месяцев назад +3

      you are probably confused C# with Assembly or C. He didn't use any external library or package at all.
      It's just pure DotNet SDK.

    • @MinokawaPH
      @MinokawaPH 6 месяцев назад +2

      lol even in C you use things such as socket.h , don't be dmb