C++ Network Programming Part 2: TCP & UDP
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
Can't thank you enough for taking the time to put these videos together, this has been extremely helpful. Thank you!
Bro You Are Literally Legend Love YOUR VIDEOs
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! 🤣
Amazing guide. Thanks :)
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.
Glad it helped you catch up!
excuse me but i was wondering if yout perhabs could upload the link of the world document a about the first video plssss
amazing love it, are there more networking videos?
THANK YOU!!!!!!!!!!!!!!!!
In the "Transmitting Objects" chapter, we don't really need that explicit casting of the object to (char *), do we?
Hello, I would like to ask if other computer can connect to that server and send binary text?
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?
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.
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.?
TCP performs error correction using its header
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?
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.
sir can we have your slides for the sake of revision. the video full of information than need to be revisited.
Source Code please ........
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.