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.
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