Skip to content

Commit b093c2c

Browse files
committed
Echo each examples' purpose
1 parent 9963bc7 commit b093c2c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/client.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
//$client->setProtocolVersion(5);
2222
// $client->setAuth('test','test');
2323

24+
echo 'Demo SOCKS client connecting to SOCKS server 127.0.0.1:9051' . PHP_EOL;
25+
2426
function ex(Exception $exception=null)
2527
{
2628
if ($exception !== null) {

examples/server-middleman.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818

1919
$server->listen('9051','localhost');
2020

21+
echo 'SOCKS server listening on localhost:9051 (which forwards everything to SOCKS server 127.0.0.1:9050)' . PHP_EOL;
22+
2123
$loop->run();

examples/server.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
use React\Socket\Connection;
4-
53
include_once __DIR__.'/../vendor/autoload.php';
64

75
$loop = React\EventLoop\Factory::create();
@@ -17,8 +15,6 @@
1715
'user' => 'p@ssw0rd'
1816
));
1917

20-
$server->on('ready', function(Connection $connection) {
21-
22-
});
18+
echo 'SOCKS server listening on localhost:9050' . PHP_EOL;
2319

2420
$loop->run();

0 commit comments

Comments
 (0)