mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 22:20:22 -04:00
Add example for python sockets
This commit is contained in:
parent
54c2782f9c
commit
3a4a977fed
7 changed files with 116 additions and 0 deletions
6
Medium_articles/python_sockets/first_example.py
Normal file
6
Medium_articles/python_sockets/first_example.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
import socket
|
||||
|
||||
HOST = 'www.github.com'
|
||||
PORT = 80
|
||||
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
client.connect((HOST, PORT))
|
Loading…
Add table
Add a link
Reference in a new issue