Create an R6 client using IPv4/IPv6 endpoint fallback.

Arguments

address

Hostname, IP address, or endpoint such as "[::1]:8080".

port

Optional port when it is not embedded in address.

type

Socket type, "stream" (TCP) or "dgram" (UDP).

protocol

Numeric protocol, usually zero.

nonblocking

Whether the socket should be nonblocking.

cloexec

Whether to set close-on-exec.

prefer

Address families to try, in order.

Value

A connected Socket R6 object.