Adding a function to test connections to UDP and TCP ports from minion.
minor fix, if protocol is not specified then default to TCP but ensure proto variable is set to tcp for return data.
move arguments into kwargs.  add ability to force family to be either ipv4 or ipv6, otherwise if a host is specified then we leave it up to the resolver.
Merge pull request #14067 from garethgreenaway/network_connect

Adding a function to test connections to UDP and TCP ports from minion.