These three lines set up a structure for configuring a network socket, in this case a TCP/IP or UDP socket.
The first one sets the protocol, in this case IPv4
The second one sets the network port to use (zero) and the third sets the IP address. In this case you don't care, letting the OS do it for you. These three setting are typically used in the bind() call on a local socket.