You are on page 1of 1

socket programming

------------------------x------

->socket is the combination of ip address and port number


->port number is the base address where the website is present.

->socket programming
is used to establish communication between client and server
>>> import socket
>>> s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
socket.AF_INET-> IPV4
socket.SOCK_STREAM->TCP

You might also like