abstract struct SOCKS::Frames

Direct Known Subclasses

Defined in:

socks/frames.cr
socks/frames/authenticate.cr
socks/frames/authorize.cr
socks/frames/establish.cr
socks/frames/fragment.cr
socks/frames/negotiate.cr

Constant Summary

Base64AuthenticationMapping = Set {['+', '!'], ['/', '%'], ['=', '#'], ['.', '$'], ['_', '&']}

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.decode_sec_websocket_protocol_authorization!(authorization : String) : String #

[View source]
def self.encode_sec_websocket_protocol_authorization(user_name : String, password : String) : String #

[View source]
def self.encode_sec_websocket_protocol_authorization(value : String) : String #

[View source]
def self.read_address!(io : IO) : AddressFlag #

[View source]
def self.read_authentication!(io : IO) : AuthenticationFlag #

[View source]
def self.read_authentication_choice!(io : IO) : AuthenticationChoiceFlag #

[View source]
def self.read_command!(io : IO) : CommandFlag #

[View source]
def self.read_destination_address!(io : IO, address_type : AddressFlag) : Tuple(Socket::IPAddress | Nil, Address) #

[View source]
def self.read_domain!(io : IO) : Address #

[View source]
def self.read_fragment_id!(io : IO, exception : Exception | Nil = nil) : UInt8 #

[View source]
def self.read_ip_address!(io : IO, address_flag : AddressFlag) : Socket::IPAddress #

[View source]
def self.read_optional_size!(io : IO, exception : Exception | Nil = nil) : UInt8 #

[View source]
def self.read_password!(io : IO) : String #

[View source]
def self.read_permission!(io : IO) : PermissionFlag #

[View source]
def self.read_reserved!(io : IO) : ReservedFlag #

[View source]
def self.read_status!(io : IO) : StatusFlag #

[View source]
def self.read_username!(io : IO) : String #

[View source]
def self.read_version!(io : IO) : VersionFlag #

[View source]
def self.strict_check_version!(struct_version_flag : VersionFlag, version_flag : VersionFlag) : Bool #

[View source]
def self.strict_read_version!(io : IO, version_flag : VersionFlag) : VersionFlag #

[View source]

Instance Method Detail

def initialize #

[View source]