module SOCKS

Defined in:

socks/address.cr
socks/socks.cr
socks/version.cr

Constant Summary

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 Method Summary

Class Method Detail

def self.create_outbound_socket(command_type : Frames::CommandFlag, destination_address : Address, dns_resolver : DNS::Resolver, tcp_timeout : TimeOut = TimeOut.new, udp_timeout : TimeOut = TimeOut.udp_default) : IPSocket #

[View source]
def self.create_outbound_socket(command_type : Frames::CommandFlag, destination_address : Socket::IPAddress | Address, dns_resolver : DNS::Resolver, tcp_timeout : TimeOut = TimeOut.new, udp_timeout : TimeOut = TimeOut.udp_default) : IPSocket #

[View source]
def self.create_outbound_socket(command_type : Frames::CommandFlag, destination_address : Socket::IPAddress, tcp_timeout : TimeOut = TimeOut.new, udp_timeout : TimeOut = TimeOut.udp_default) : IPSocket #

[View source]
def self.to_ip_address(host : String, port : Int32) #

[View source]