In python socket Module create socket and also use the function name socket.socket() function. This function is also available in socket module. There are many type of socket method in python like- Server Socket Methods and Client Socket Methods etc.
Basic syntax of socket module:
s = socket.socket (socket_family, socket_type, protocol=0)
here is a parameters of socket module:
1- socket_family: socket_family is either AF_UNIX or AF_INET, as explained earlier.
2- socket_type: socket_type is either SOCK_STREAM or SOCK_DGRAM.
3- protocol: protocol is usually left out, defaulting to 0.
0 Comment(s)