The protocol parameter sets the specific protocol within the specified domain to be used when communicating on the returned socket.
The type parameter selects the type of communication to be used by the socket.