Sockets Tutorial with Python 3 part 2 - buffering and streaming data

preview_player
Показать описание
Welcome to part 2 of the sockets tutorial with Python. In the previous tutorial, we learned how we could send and receive data using sockets, but then we illustrated the problem that can arise when our communication exceeds our buffer size. In this tutorial, we'll talk about overcoming this!

#socket #networking #python
Рекомендации по теме
Комментарии
Автор

When you said “it actually dawned on me that I didn’t explain what the heck is going on here” and began to explain, you made my day. Thank. You. So. Much.

shoshanawolfe
Автор

For anyone who wants a life pro-tip:

If you don't understand something done in a video, don't just copy it into the code. Actually skip it, or try to implement the code the way you think it should work. Usually you'll then see an issue, that's being resolved by the code in the video. Or be right, and your code will also work. Both are better than just copying something without understanding what is done. Happy coding!

almarc
Автор

4 years later, but man does this guy make some good tutorials. Explains everything really well, has some great pacing, and things go wrong enough for it to kinda be interesting lol! (no offense to the tutorial though)

hagangray
Автор

I wish I had a teacher like you a long time ago!!!!

arab
Автор

Really Good. Sentdex was the inspiration for me to learn Python. Thanks for keeping me on the edge always.

speaktothepoint
Автор

you can use CTRL + BREAK(PAUSE) to break in the CMD window

egae
Автор

Hey, man, just came across your videos. Awesome!! I am working on an industrial solution for sending level sensor info through wifi using two Raspberry Pi's. It really helped me understand sockets.

tater
Автор

Hi sentdex,
If it's relevant, are you able to show us how you might communicate with say a printer using sockets? Thanks for reading.

benmyers
Автор

Thank you for making super awesome python3 socket tutorial.

atdtx
Автор

short, enjoyable, and useful video. Thanks a lot.

selcukdoven
Автор

I really like your way of teaching!! I am really bad at this but your interesting way of teaching just ease me a lot ! Thanks for making this video!

陈晨-no
Автор

I like you because you did not edit your run errors like others guys

ashabmohiuddin
Автор

I love your vibe. You make learning easier. Thank you

balahuraadrian
Автор

Awesome video! A bit of feedback, I think that it would help people if you explain more about how a socket works. It took me a while to figure out that sockets will close if there is no more data to be sent, which explains why you need buffering.

hunterpruett
Автор

I like this guy's positive attitude!

xiaoliw
Автор

At time 9:47, line 17, you use int(msg[:HEADERSIZE ] )
I was wondering, how does python handle the typecasting ? Because we are passing the msg length in these first characters, but the message length might not use all these characters, so what is used to fill in the unused space in the header that does not interfere with the typecasting?

LuadoO
Автор

How many fancy cups do you have? Every single one is amazing!!

yufanji
Автор

Hi sentdex, definitely love your videos! Some time ago, I stumpled upon a problem in python. I'm kind of a beginner in python :) As you might know, the UDP and TCP max buffer size is about 64kilobytes. I wanted to stream video via some kind of networking socket to a c# application but the array of one opencv camera frame was about 9, 5Mb! I read something about compression with ffmpeg and then sending it but I did'nt get it to run and since you really know a lot about python I was wondering if you could do a short video that deals with this topic in this series since it's pretty fitting.... Thanks for you TF vids btw, would love to see a series with TF 2.0!

loukask.
Автор

i feel you man, filming in ubuntu is really frustrating, but for console logs is really clean

elasdebastos
Автор

I love your content sentdex!! Could you PLEASE do a tutorial series like this one using UDP connection??

luccaviccini