Sockets Tutorial with Python 3 part 1 - sending and receiving data

  Переглядів 794,629

sentdex

sentdex

5 років тому

Welcome to a tutorial on sockets with Python 3. We have a lot to cover, so let's just jump right in. The socket library is a part of the standard library, so you already have it.
Source code and text-based tutorial: pythonprogramming.net/sockets...
Channel membership: / @sentdex
Discord: / discord
Support the content: pythonprogramming.net/support...
Twitter: / sentdex
Facebook: / pythonprogramming.net
Twitch: / sentdex
G+: plus.google.com/+sentdex
#sockets #python #tutorial

КОМЕНТАРІ: 628
@grim1427
@grim1427 3 роки тому
That feeling when you spend hours weeding through needlessly complicated tutorials until you find the one that just makes sense and is 1000 times simpler than any of the others.
@wi1h
@wi1h 5 років тому
AF_INET means Address Family InterNET for IPV4. IPV6 is AF_INET6, Bluetooth is AF_BLUETOOTH, unix sockets are AF_UNIX, etc.
@RohitAwate
@RohitAwate 5 років тому
I recently wrote similar socket code in C, and its interesting how closely Python and C map here. AF stands for address family. It denotes the kind of addresses a socket can communicate with. In this case, the socket uses IPv4 addressing. Similar families are AF_INET6 for IPv6, AF_UNIX for IPC on Unix systems, AF_BLUETOOTH for Bluetooth and so on.
@anirudhpuranik5222
@anirudhpuranik5222 4 роки тому
This is by far the most easily understandable python socket tutorial I've come across! It's like a ray of hope while I'm doing my final year project.
@RyuWeiWei
@RyuWeiWei 4 роки тому
A class and practice of 2 hrs. Explained within 15min with making so much sense. I like it.
@robertkraciuk2753
@robertkraciuk2753 4 роки тому
right on time my man, just when i started looking for sockets tutorials right on goddamn time, love it !
@omarromero9038
@omarromero9038 2 роки тому
Since I found your videos, I've been hooked on Python and eventually branched out and lost sight of your videos. After watching this video, today, I'm reminded why your videos are by far better than most other tutorials.
@RufusVidS
@RufusVidS 3 роки тому
I think you should have pointed out the distinction that the first socket you create in the server (s) is not actually the socket that will be used for communication. It is the listening socket, which only gets connection requests. The clientsocket that is created is the actually communication socket and is actually on a different port. I think the early awareness in intro tutorials will help avoid confusion. Great tuts, btw!
@bradenbigham9875
@bradenbigham9875 Рік тому
instead of using byes, you could use open function...
@freakyshine
@freakyshine Рік тому
The way you explain it really shows you understand the topic. Love to see that in a tutorial because it means it's a good tutorial.
@hanac5586
@hanac5586 Рік тому
I really like your teaching style, explaining every line briefly, makes things a lot clearer. Thank you!
@oliverli9630
@oliverli9630 4 роки тому
while i was looking for socket tutorials, there it is! lovely! added to favorite for later use. really useful in trading.
@abhinavghosh725
@abhinavghosh725 5 років тому
GREAT VIDEO MAN!! FOLLOWING YOUR SERIES FROM PYTHON BASICS TO ML TO DATA SCIENCE AND NOW THIS!!!KEEP DOING THE GOOD WORK!!! ! BLESS YOU!!
@jeremytoledano123
@jeremytoledano123 3 роки тому
Dude,
@paulstaley4245
@paulstaley4245 4 роки тому
Very entertaining video. I am still very new to python and I've been writing some basic scripts for work. This video is exactly what I was looking for. Thank you!
@pythonbibye
@pythonbibye 3 роки тому
This was so absolutely helpful!! Thank you so much and keep up with the good work!! I really love your tutorials <3
@seanshimon
@seanshimon 21 день тому
`socket`: This is the module in Python that provides access to the BSD socket interface. It is used to create networking applications.
@danielzaken3223
@danielzaken3223 Рік тому
THE BEST cup I saw in my life !
@1944GPW
@1944GPW 4 роки тому
Full marks to you for using a nice big font to make the code clearly easy to read on UKposts. You would not believe how many coding examples make you have to squint to figure out what they were typing ...or maybe you would. Thanks again, nice presentation.
@izaquemiguelgabriel
@izaquemiguelgabriel 4 роки тому
That’s exactly what I was looking for! Thanks, sir!
#1 | Python Socket | Как Работает Сеть?
9:01
Псевдо Программист
Переглядів 47 тис.
LIVE - Парад Победы в Москве 9 Мая 2024
2:27:56
AKIpress news
Переглядів 2 млн
15 Python Libraries You Should Know About
14:54
ArjanCodes
Переглядів 348 тис.
Creating a Simple Socket Server and Client in Python
15:44
Real Python
Переглядів 13 тис.
Learn Python With This ONE Project!
55:04
Tech With Tim
Переглядів 1,6 млн
Python Sockets Simply Explained
39:33
NeuralNine
Переглядів 149 тис.
Modern Python logging
21:32
mCoding
Переглядів 140 тис.
5 Useful F-String Tricks In Python
10:02
Indently
Переглядів 223 тис.
Create A Python API in 12 Minutes
12:05
Tech With Tim
Переглядів 517 тис.
Python Socket Programming Tutorial
49:43
Tech With Tim
Переглядів 992 тис.
LIVE - Парад Победы в Москве 9 Мая 2024
2:27:56
AKIpress news
Переглядів 2 млн