A socket is one endpoint of a two-way communication link between two programs running on the network.” When we talk with respect to Python — Socket programming is a method of connecting two nodes on a network in order to communicate with each other. In Python code, we will use a socket library, as it enables users to transfer information over the network
In this article, we will set up a socket on each end of the network and will allow a client to interact with other clients via the server. There will be two different scripts-
We can run these scripts in the operating system command-prompt or terminal. When the server-side script is running, it waits for the client-side connection. Once the connection is established, the client and server can communicate with each other.
“Python has been an important part of Google since the beginning, and remains so as the system grows and evolves. Today dozens of Google engineers use Python, and we’re looking for more people with skills in this language.”
_~ Peter Norvig, director of search quality at _Google, Inc.
#chat #coding #servers #python #clients