Definition at line 36 of file SOCKS5.php.
HTTP_Request2_SOCKS5::__construct |
( |
|
$address, |
|
|
|
$timeout = 10 , |
|
|
array |
$contextOptions = array() , |
|
|
|
$username = null , |
|
|
|
$password = null |
|
) |
| |
Constructor, tries to connect and authenticate to a SOCKS5 proxy
- Parameters
-
string | $address | Proxy address, e.g. 'tcp://localhost:1080' |
int | $timeout | Connection timeout (seconds) |
array | $contextOptions | Stream context options |
string | $username | Proxy user name |
string | $password | Proxy password |
- Exceptions
-
Definition at line 51 of file SOCKS5.php.
HTTP_Request2_SOCKS5::connect |
( |
|
$remoteHost, |
|
|
|
$remotePort |
|
) |
| |
Connects to a remote host via proxy
- Parameters
-
string | $remoteHost | Remote host |
int | $remotePort | Remote port |
- Exceptions
-
Definition at line 115 of file SOCKS5.php.
HTTP_Request2_SOCKS5::performAuthentication |
( |
|
$username, |
|
|
|
$password |
|
) |
| |
|
protected |
Performs username/password authentication for SOCKS5
- Parameters
-
string | $username | Proxy user name |
string | $password | Proxy password |
- Exceptions
-
Definition at line 92 of file SOCKS5.php.
The documentation for this class was generated from the following file: