Creating a client socket


Problem: What is the difference between clientSocket = socket(AF_INET, SOCK_DGRAM) & clientSocket = socket.socket(AF_INET, SOCK_DGRAM)? These are lines from code where we create UDP Client, but I am unsure why we would use one over the other when we create a client socket.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Creating a client socket
Reference No:- TGS03252255

Expected delivery within 24 Hours