Hi Guys,
Today in this article we shall build up a small program to understand client -server communication using socket in Python.
Server side:
1. Create a socket:
socket(socket family, type(TCP/UDP), protocol)
-- Family or domain could be AF_INET or AF_UNIX
-- Type could be TCP: SOCK_STREAM or UDP : SOCK_DGRAM
-- Protocol is left bank, by default it is 0.
2. Bind socket
socket.bind(IPaddress, portNo)
-- bind the socket to a system's ip address and port
...
Read more »