mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-30 15:31:10 +00:00
.. | ||
client1.py | ||
README.md | ||
server1.py |
Socket Progamming in Python
We all know how to use python for basic stuff and general programming. But this script allows you to create a server and client of your own using sockets.
What are sockets?
A socket is one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port number so that the TCP layer can identify the application that data is destined to be sent to. An endpoint is a combination of an IP address and a port number.
Requirments
Clone Repo You don't need to install anything just import sockets library. More information here : https://docs.python.org/3/howto/sockets.html Use server.py for server Use client.py for client