|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
Proxies data through a SOCKS 5 proxy. More...
Inheritance diagram for Erebot\Proxy\SOCKS:Public Member Functions | |
| proxify (\Erebot\URIInterface $proxyURI,\Erebot\URIInterface $nextURI) | |
Public Member Functions inherited from Erebot\Proxy\Base | |
| __construct ($socket) | |
| proxify (\Erebot\URIInterface $proxyURI,\Erebot\URIInterface $nextURI) | |
Protected Member Functions | |
| read ($len) | |
| userpass (\Erebot\URIInterface $proxyURI) | |
| write ($line) | |
Additional Inherited Members | |
Protected Attributes inherited from Erebot\Proxy\Base | |
| $logger | |
| A logger for this proxy client. | |
| $socket | |
| A socket on which to operate. | |
|
protected |
Reads some data from the proxy server.
| int | $len | Number of bytes to read from the proxy server. |
| string | Actual data read. |
Definition at line 201 of file SOCKS.php.
Referenced by Erebot\Proxy\SOCKS\userpass().
|
protected |
Does the authentication step.
| Erebot::URIInterface | $proxyURI | An object representing the URI of this SOCKS proxy server, containing the credentials that will be sent during the authentication step. |
Definition at line 123 of file SOCKS.php.
References Erebot\Proxy\SOCKS\read(), and Erebot\Proxy\SOCKS\write().
|
protected |
Passes some data to the proxy server.
| string | $line | Data to send. |
| int | Number of bytes actually sent (this may be lower that the length of the initial $line if some bytes could not be sent). |
Definition at line 181 of file SOCKS.php.
Referenced by Erebot\Proxy\SOCKS\userpass().