C++ Network Programming Part 2: TCP & UDP

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • Part 1 on Sockets: • C++ Network Programmin...
    Part 2 on TCP and UDP: • C++ Network Programmin...
    0:00 Recap on Part 1 - Setting up the socket
    2:47 Introduction to TCP
    4:19 Client Step 4 - Send data via TCP
    13:41 Server Step 6 - Receive data via TCP
    18:16 Sending Objects via TCP
    21:07 String functions
    26:18 Introduction to UDP
    31:25 Configuring the Socket to use UDP
    32:23 Sending data via the sendto function
    39:30 Receiving data via the recvfrom function
    42:26 Sending Objects via UDP
    46:39 Exercise 1 - Client Step 4 - Sending data via TCP
    53:01 Exercise 1 - Server Step 6 - Receiving data via TCP
    56:15 Exercise 2 - Server Step 6 - Sending data via TCP
    58:57 Exercise 2 - Client Step 4 - Receiving data via TCP

Komentáře • 21

  • @austinbachurski7906
    @austinbachurski7906 Před 4 měsíci +1

    Can't thank you enough for taking the time to put these videos together, this has been extremely helpful. Thank you!

  • @Unity_and_Peace
    @Unity_and_Peace Před rokem +2

    Bro You Are Literally Legend Love YOUR VIDEOs

  • @user-ff4ct1wt6r
    @user-ff4ct1wt6r Před rokem +3

    Thank you for such amazing tutorial! I'm a total beginner but to my surprise after watching this I was able to write a code that does the job and even do exercises by myself and modify it to fit my needs better. Gotta go rewatch both parts to fully understand what the hell have I done! 🤣

  • @BlueCultist666
    @BlueCultist666 Před rokem

    Amazing guide. Thanks :)

  • @nyeinkyawzin5468
    @nyeinkyawzin5468 Před rokem +3

    Thank you for this valuable lecture. Actually my coding practice in C++ is very sluggish and this made me easy to catch on. Thank you very much.

  • @mersenne2486
    @mersenne2486 Před 10 měsíci

    amazing love it, are there more networking videos?

  • @Timo-Epis
    @Timo-Epis Před 4 měsíci

    THANK YOU!!!!!!!!!!!!!!!!

  • @mafi_tube
    @mafi_tube Před rokem

    In the "Transmitting Objects" chapter, we don't really need that explicit casting of the object to (char *), do we?

  • @osmanemredonder3604
    @osmanemredonder3604 Před rokem

    Hello, I would like to ask if other computer can connect to that server and send binary text?

  • @uanbu6539
    @uanbu6539 Před rokem

    Why didn't we specify the IP ADDRESS and PORT NUMBER of the sender in the UDP Receive Example (at 41:09)? i.e. why didn't we specify the sender's IP ADDRESS and PORT NUMBER in the clientAddress variable? Does anyone know?

  • @badassopenpolling
    @badassopenpolling Před rokem +2

    Hi Nicholas - Thank you for both the videos on this interesting topic.
    Kindly teach us design of multi client server application - a chat service application.
    Question - Many a times I got error - "unable to start program access denied " , is it something wrong with the code (I am using your code snippet) and after commenting all ws lib code , program start running perfectly.

  • @tillstachelhaus1102
    @tillstachelhaus1102 Před rokem

    I wonder if the TCP send and recv funktions have automated error correction and parity checking built in or if this only sents the raw byte code you put in.?

  • @hfucc0324
    @hfucc0324 Před 2 lety

    Hello sir, is there anyway to send a list of objects? I try sending vector but it didn't work. Will i have to send the txt file containing the data instead?

    • @NicholasDayPhD
      @NicholasDayPhD  Před rokem +1

      Hi Phuc, if you can cast the contents of txt file to appropriate data type (in this case, a char buffer) then you should be able to send it. May have to write a function that can translate the data into the appropriate format before sending and after retrieving at each end.

  • @shivamkumarmanjhi7948
    @shivamkumarmanjhi7948 Před 2 měsíci

    sir can we have your slides for the sake of revision. the video full of information than need to be revisited.

  • @chandansah9676
    @chandansah9676 Před 2 lety +1

    Source Code please ........

    • @NicholasDayPhD
      @NicholasDayPhD  Před 2 lety +5

      Hello Chandan, I'm afraid I'm not able to distribute the full copies of source code for this particular example, as it pertains to an assessment associated with this particular course. I recorded these videos during the UK lockdown to help our students. However, if you check out the end of this video, I walk you through how to start building a networking application. Alterntively, there are plenty of other sites out there that probably have complete examples of networking applications.