Documentation

SocketConnector
in

Table of Contents

Methods

connect()  : Socket
Establish a socket connection to the specified URI.

Methods

connect()

Establish a socket connection to the specified URI.

public connect(SocketAddress|string $uri[, ConnectContext|null $context = null ][, Cancellation|null $cancellation = null ]) : Socket
Parameters
$uri : SocketAddress|string

URI in scheme://host:port format. TCP is assumed if no scheme is present.

$context : ConnectContext|null = null

Socket connect context to use when connecting.

$cancellation : Cancellation|null = null
Tags
throws
ConnectException
throws
CancelledException
Return values
Socket

        
On this page

Search results