Skip to content

Instantly share code, notes, and snippets.

View deadex-ng's full-sized avatar
🎯
Focusing

Fumbani Banda deadex-ng

🎯
Focusing
View GitHub Profile

Transmission Control Protocol

TCP stands for Transmission Control Protocol. TCP is a communication standard that enables application programs and computing devices to exchange messages over a network. TCP establishes a connection between the source and destination before it starts transmitting the data. It breaks large amounts of data into smaller packets while ensuring data integrity.

TCP server in python

We import socket and threading module. The socket module provides various objects, constants , functions and related exceptions for building full-fledged network applications including client and server programs. The threading module allows a program to run multiple operations concurrently in the same process space.

import socket