module

SOCKS

Constants

AUTHORS = Set {({name: "636f7374"})}
LICENSE = "BSDv3"
RELEASE_DATE = Time.parse_local("2021-02-25 00:00:00 +08:00", "%F %T ")
VERSION = "1.0.0"

Class methods

create_bind_socket(dns_resolver : DNS::Resolver, session : Session, command_flag : Frames::CommandFlag, destination_address : Socket::IPAddress | Address, tcp_timeout : TimeOut) : Tuple(Socket::IPAddress, TCPServer | Layer::AssociateUDP)
Source
create_outbound_socket(command_flag : Frames::CommandFlag, destination_address : Address, dns_resolver : DNS::Resolver, tcp_timeout : TimeOut = TimeOut.new) : IPSocket
Source
create_outbound_socket(command_flag : Frames::CommandFlag, destination_address : Socket::IPAddress | Address, dns_resolver : DNS::Resolver, tcp_timeout : TimeOut = TimeOut.new) : IPSocket
Source
create_outbound_socket(command_flag : Frames::CommandFlag, destination_address : Socket::IPAddress, tcp_timeout : TimeOut = TimeOut.new) : IPSocket
Source
create_tcp_bind_socket(session : Session, tcp_timeout : TimeOut) : Tuple(Socket::IPAddress, TCPServer)
Source
create_udp_bind_socket(dns_resolver : DNS::Resolver, session : Session, command_flag : Frames::CommandFlag, destination_address : Socket::IPAddress | Address) : Tuple(Socket::IPAddress, Layer::AssociateUDP)
Source
to_ip_address(host : String, port : Int32)
Source

Nested types