Creates a new connection abstraction structure. The argument usually one of
yielding either a TCP or a UDP connection. No connection is established by
the call to this function and no data is sent over the network.
For more advanced use, it is also possible to specify different connection
If IPv6 support is configured then the type can be suffixed
_IPV6 to specify an IPv6