abstract struct SOCKS::Frames
- SOCKS::Frames
- Struct
- Value
- Object
Direct Known Subclasses
- SOCKS::Frames::Authenticate
- SOCKS::Frames::Authorize
- SOCKS::Frames::Establish
- SOCKS::Frames::Fragment
- SOCKS::Frames::Negotiate
Defined in:
socks/frames.crsocks/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
- .decode_sec_websocket_protocol_authorization!(authorization : String) : String
- .encode_sec_websocket_protocol_authorization(user_name : String, password : String) : String
- .encode_sec_websocket_protocol_authorization(value : String) : String
- .read_address!(io : IO) : AddressFlag
- .read_authentication!(io : IO) : AuthenticationFlag
- .read_authentication_choice!(io : IO) : AuthenticationChoiceFlag
- .read_command!(io : IO) : CommandFlag
- .read_destination_address!(io : IO, address_type : AddressFlag) : Tuple(Socket::IPAddress | Nil, Address)
- .read_domain!(io : IO) : Address
- .read_fragment_id!(io : IO, exception : Exception | Nil = nil) : UInt8
- .read_ip_address!(io : IO, address_flag : AddressFlag) : Socket::IPAddress
- .read_optional_size!(io : IO, exception : Exception | Nil = nil) : UInt8
- .read_password!(io : IO) : String
- .read_permission!(io : IO) : PermissionFlag
- .read_reserved!(io : IO) : ReservedFlag
- .read_status!(io : IO) : StatusFlag
- .read_username!(io : IO) : String
- .read_version!(io : IO) : VersionFlag
- .strict_check_version!(struct_version_flag : VersionFlag, version_flag : VersionFlag) : Bool
- .strict_read_version!(io : IO, version_flag : VersionFlag) : VersionFlag
Instance Method Summary
Constructor Detail
Class Method Detail
def self.decode_sec_websocket_protocol_authorization!(authorization : String) : String
#
def self.encode_sec_websocket_protocol_authorization(user_name : String, password : String) : String
#
def self.read_destination_address!(io : IO, address_type : AddressFlag) : Tuple(Socket::IPAddress | Nil, Address)
#
def self.strict_check_version!(struct_version_flag : VersionFlag, version_flag : VersionFlag) : Bool
#