123456module juptune.event.io;
Result connect(
const const char[] address,
ushort defaultPort = cast(ushort)0u
);
Connects to the target address.
This overload is for convenience as it will call IpAddress.parseon address.
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