1 | <?php |
||
11 | class Connector extends \React\SocketClient\Connector |
||
12 | { |
||
13 | /** |
||
14 | * @var ConnectionParams |
||
15 | */ |
||
16 | private $params; |
||
17 | |||
18 | /** |
||
19 | * @var MsgFactory |
||
20 | */ |
||
21 | private $msgs; |
||
22 | |||
23 | /** |
||
24 | * @var LoopInterface |
||
25 | */ |
||
26 | private $loop; |
||
|
|||
27 | |||
28 | /** |
||
29 | * Connector constructor. |
||
30 | * @param MsgFactory $msgs |
||
31 | * @param ConnectionParams $params |
||
32 | * @param LoopInterface $loop |
||
33 | * @param Resolver $resolver |
||
34 | */ |
||
35 | 12 | public function __construct(MsgFactory $msgs, ConnectionParams $params, LoopInterface $loop, Resolver $resolver) |
|
43 | |||
44 | /** |
||
45 | * @param NetworkAddressInterface $remotePeer |
||
46 | * @return \React\Promise\PromiseInterface|static |
||
47 | */ |
||
48 | 12 | public function rawConnect(NetworkAddressInterface $remotePeer) |
|
58 | |||
59 | /** |
||
60 | * @param NetworkAddressInterface $remotePeer |
||
61 | * @return \React\Promise\PromiseInterface|static |
||
62 | */ |
||
63 | 12 | public function connect(NetworkAddressInterface $remotePeer) |
|
71 | } |
||
72 |