Skip to content

Commit 83b77b4

Browse files
committed
Mark internal API as @internal
1 parent aa478fe commit 83b77b4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/Server.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Server
3535
/** @internal */
3636
const ERROR_ADDRESS_UNSUPPORTED = 0x08;
3737

38-
protected $loop;
38+
private $loop;
3939

4040
private $connector;
4141

@@ -104,6 +104,7 @@ public function unsetAuth()
104104
$this->auth = null;
105105
}
106106

107+
/** @internal */
107108
public function onConnection(ConnectionInterface $connection)
108109
{
109110
$that = $this;
@@ -118,7 +119,9 @@ public function onConnection(ConnectionInterface $connection)
118119
}
119120

120121
/**
121-
* gracefully shutdown connection by flushing all remaining data and closing stream
122+
* [internal] gracefully shutdown connection by flushing all remaining data and closing stream
123+
*
124+
* @internal
122125
*/
123126
public function endConnection(ConnectionInterface $stream)
124127
{
@@ -179,6 +182,7 @@ private function handleSocks(ConnectionInterface $stream)
179182
});
180183
}
181184

185+
/** @internal */
182186
public function handleSocks4(ConnectionInterface $stream, $protocolVersion, StreamReader $reader)
183187
{
184188
// suppliying hostnames is only allowed for SOCKS4a (or automatically detected version)
@@ -235,6 +239,7 @@ public function handleSocks4(ConnectionInterface $stream, $protocolVersion, Stre
235239
});
236240
}
237241

242+
/** @internal */
238243
public function handleSocks5(ConnectionInterface $stream, $auth=null, StreamReader $reader)
239244
{
240245
$remote = $stream->getRemoteAddress();
@@ -344,6 +349,7 @@ public function handleSocks5(ConnectionInterface $stream, $auth=null, StreamRead
344349
});
345350
}
346351

352+
/** @internal */
347353
public function connectTarget(ConnectionInterface $stream, array $target)
348354
{
349355
$uri = $target[0];

0 commit comments

Comments
 (0)