PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
vendor
/
react
/
socket
/
src
<?php namespace RectorPrefix202411\React\Socket; /** * Decorates an existing Connector to always use a fixed, preconfigured URI * * This can be useful for consumers that do not support certain URIs, such as * when you want to explicitly connect to a Unix domain socket (UDS) path * instead of connecting to a default address assumed by an higher-level API: * * ```php * $connector = new React\Socket\FixedUriConnector( * 'unix:///var/run/docker.sock', * new React\Socket\UnixConnector() * ); * * // destination will be ignored, actually connects to Unix domain socket * $promise = $connector->connect('localhost:80'); * ``` */ class FixedUriConnector implements ConnectorInterface { private $uri; private $connector; /** * @param string $uri * @param ConnectorInterface $connector */ public function __construct($uri, ConnectorInterface $connector) { $this->uri = $uri; $this->connector = $connector; } public function connect($_) { return $this->connector->connect($this->uri); } }
[-] SecureServer.php
[edit]
[-] TcpServer.php
[edit]
[-] TimeoutConnector.php
[edit]
[-] HappyEyeBallsConnectionBuilder.php
[edit]
[-] ConnectionInterface.php
[edit]
[+]
..
[-] SocketServer.php
[edit]
[-] ConnectorInterface.php
[edit]
[-] SecureConnector.php
[edit]
[-] UnixConnector.php
[edit]
[-] Connector.php
[edit]
[-] FixedUriConnector.php
[edit]
[-] Connection.php
[edit]
[-] StreamEncryption.php
[edit]
[-] DnsConnector.php
[edit]
[-] HappyEyeBallsConnector.php
[edit]
[-] Server.php
[edit]
[-] ServerInterface.php
[edit]
[-] TcpConnector.php
[edit]
[-] FdServer.php
[edit]
[-] UnixServer.php
[edit]
[-] LimitingServer.php
[edit]