web3-starter-py/Medium_articles/python_sockets/first_example.py
2020-02-19 14:20:40 -08:00

6 lines
No EOL
136 B
Python

import socket
HOST = 'www.github.com'
PORT = 80
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect((HOST, PORT))