Posts

Showing posts with the label Python Networking

Introduction to network programming with Python #0003 HTTP 2020 Tutorial)

Image
  Table of Contents 1. Introduction to HTTP 2. Write a TCP server that serves as a HTTP server 3. A HTTP server demo 4. A HTTP server with multiprocessing 5. A HTTP server with multithreading 6. A HTTP server with gevent 7. A multitasking TCP server without threadings, multiprocessing, and gevent 8. HTTP Persistent connection Vs multiple connections 9. Improve our server with epoll (Linux only)

Introduction to network programming with Python #0002 TCP (2020 Tutorial)

Image
  Table of Contents 1. Introduction to TCP 2. TCP client 3. TCP server 4. TCP application file download

Introduction to network programming with Python #0001 UDP (2020 Tutorial)

Image
Table of Contents 1.  Introduction to network communication 2.  IP address 3.  Linux command (ping, ifconfig) 4.  Port 5.  Socket 6.  UDP application 7.  Python 3 encoding and decoding 8.  Connection between UPD and Port 9.  Practice, a UDP chatter 1.  Introduction to network communication In this tutorial, we are gonna introduce our first topic on network communication UDP. In the next tutorial, we are gonna introduce the second topic TCP which is more complex than UDP. I would like to keep the this tutorial as simple as possible by just using plain words. Our main purpose is to create applications that could communicate with each other through network. 1.1  What is network? As you can see from the picture, a man holding a walkie-talkie talk to another person hundreds of meters away. Words are exchanged between two people through radio waves which formed a network. So in plain word, as long as there are at least two devices that could send information back and forth, they form a netwo