1234567module juptune.event.io;
Result connect(
const const char[] address,
bool lookupWasPerformed,
ushort defaultPort = cast(ushort)0u
);
Connects to the target address.
This overload is for convenience as it will call IpAddress.parseon address.
This overload, if parsing of addressfails, will attempt a DNS lookup to find the IP address instead.
Asserts that openhas been called first.
Anything thrown by IpAddress.parse.
Anything thrown by the main overload.
A Result
12345module juptune.event.io;
Result connect(
IpAddress address
);
Connects to the target address.
The addressis converted into an IPv6 address before the connection is attempted.
Asserts that openhas been called first.
Any LinuxErrorthrown by libc's connectsyscall.
A Result