Documentation

Socks5SocketConnector
in package
implements SocketConnector uses ForbidCloning, ForbidSerialization

FinalYes

Table of Contents

Interfaces

SocketConnector

Constants

REPLIES  = [0 => 'succeeded', 1 => 'general SOCKS server failure', 2 => 'connection not allowed by ruleset', 3 => 'Network unreachable', 4 => 'Host unreachable', 5 => 'Connection refused', 6 => 'TTL expired', 7 => 'Command not supported', 8 => 'Address type not supported']

Properties

$password  : string|null
$proxyAddress  : SocketAddress|string
$socketConnector  : SocketConnector|null
$username  : string|null

Methods

__construct()  : mixed
__serialize()  : never
__unserialize()  : never
connect()  : Socket
Establish a socket connection to the specified URI.
tunnel()  : void
__clone()  : mixed
writeConnectRequest()  : void
writeHello()  : void

Constants

REPLIES

private mixed REPLIES = [0 => 'succeeded', 1 => 'general SOCKS server failure', 2 => 'connection not allowed by ruleset', 3 => 'Network unreachable', 4 => 'Host unreachable', 5 => 'Connection refused', 6 => 'TTL expired', 7 => 'Command not supported', 8 => 'Address type not supported']

Properties

Methods

__unserialize()

public final __unserialize(array<string|int, mixed> $data) : never
Parameters
$data : array<string|int, mixed>
Return values
never

tunnel()

public static tunnel(Socket $socket, string $target, string|null $username, string|null $password, Cancellation|null $cancellation) : void
Parameters
$socket : Socket
$target : string
$username : string|null
$password : string|null
$cancellation : Cancellation|null

        
On this page

Search results