The connect routine

Combined from primary sources listed below.

In class IO::Socket::Async ( Type/IO/Socket/Async )§

See primary docmentation in context for method connect.

method connect-path§

method connect-path(Str $path --> Promise)

Attempts to connect to a unix domain stream socket specified by $path, returning a Promise that will either be kept with a connected IO::Socket::Async or broken if the connection cannot be made.

In class IO::Socket::Async ( Type/IO/Socket/Async )§

See primary docmentation in context for method connect.

method connect§

method connect(Str $host, Int $port --> Promise)

Attempts to connect to the TCP server specified by $host and $port, returning a Promise that will either be kept with a connected IO::Socket::Async or broken if the connection cannot be made.