TYPO3
7.6
|
Public Member Functions | |
__construct ($address, $timeout=10, array $contextOptions=array(), $username=null, $password=null) | |
connect ($remoteHost, $remotePort) | |
Public Member Functions inherited from HTTP_Request2_SocketWrapper | |
__construct ($address, $timeout, array $contextOptions=array()) | |
__destruct () | |
read ($length) | |
readLine ($bufferSize, $localTimeout=null) | |
write ($data) | |
eof () | |
setDeadline ($deadline, $timeout) | |
enableCrypto () | |
Protected Member Functions | |
performAuthentication ($username, $password) | |
Protected Member Functions inherited from HTTP_Request2_SocketWrapper | |
checkTimeout () | |
connectionWarningsHandler ($errno, $errstr) | |
Additional Inherited Members | |
Protected Attributes inherited from HTTP_Request2_SocketWrapper | |
$connectionWarnings = array() | |
$socket | |
$deadline | |
$timeout | |
Definition at line 36 of file SOCKS5.php.
__construct | ( | $address, | |
$timeout = 10 , |
|||
array | $contextOptions = array() , |
||
$username = null , |
|||
$password = null |
|||
) |
Constructor, tries to connect and authenticate to a SOCKS5 proxy
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 |
HTTP_Request2_LogicException | |
HTTP_Request2_ConnectionException | |
HTTP_Request2_MessageException |
Definition at line 51 of file SOCKS5.php.
References $response, HTTP_Request2_SocketWrapper\$timeout, HTTP_Request2_Exception\MALFORMED_RESPONSE, performAuthentication(), HTTP_Request2_SocketWrapper\read(), and HTTP_Request2_SocketWrapper\write().
connect | ( | $remoteHost, | |
$remotePort | |||
) |
Connects to a remote host via proxy
string | $remoteHost | Remote host |
int | $remotePort | Remote port |
Definition at line 115 of file SOCKS5.php.
References $response, elseif, HTTP_Request2_Exception\MALFORMED_RESPONSE, HTTP_Request2_SocketWrapper\read(), and HTTP_Request2_SocketWrapper\write().
|
protected |
Performs username/password authentication for SOCKS5
string | $username | Proxy user name |
string | $password | Proxy password |
HTTP_Request2_ConnectionException | |
HTTP_Request2_MessageException | http://tools.ietf.org/html/rfc1929 |
Definition at line 92 of file SOCKS5.php.
References $response, HTTP_Request2_SocketWrapper\read(), and HTTP_Request2_SocketWrapper\write().
Referenced by __construct().