struct SOCKS::Frames::Fragment

Defined in:

socks/frames/fragment.cr

Constructors

Instance Method Summary

Instance methods inherited from struct SOCKS::Frames

initialize initialize

Constructor methods inherited from struct SOCKS::Frames

new new

Class methods inherited from struct SOCKS::Frames

decode_sec_websocket_protocol_authorization!(authorization : String) : String decode_sec_websocket_protocol_authorization!, encode_sec_websocket_protocol_authorization(user_name : String, password : String) : String
encode_sec_websocket_protocol_authorization(value : String) : String
encode_sec_websocket_protocol_authorization
, read_address!(io : IO) : AddressFlag read_address!, read_authentication!(io : IO) : AuthenticationFlag read_authentication!, read_authentication_choice!(io : IO) : AuthenticationChoiceFlag read_authentication_choice!, read_command!(io : IO) : CommandFlag read_command!, read_destination_address!(io : IO, address_type : AddressFlag) : Tuple(Socket::IPAddress | Nil, Address) read_destination_address!, read_domain!(io : IO) : Address read_domain!, read_fragment_id!(io : IO, exception : Exception | Nil = nil) : UInt8 read_fragment_id!, read_ip_address!(io : IO, address_flag : AddressFlag) : Socket::IPAddress read_ip_address!, read_optional_size!(io : IO, exception : Exception | Nil = nil) : UInt8 read_optional_size!, read_password!(io : IO) : String read_password!, read_permission!(io : IO) : PermissionFlag read_permission!, read_reserved!(io : IO) : ReservedFlag read_reserved!, read_status!(io : IO) : StatusFlag read_status!, read_username!(io : IO) : String read_username!, read_version!(io : IO) : VersionFlag read_version!, strict_check_version!(struct_version_flag : VersionFlag, version_flag : VersionFlag) : Bool strict_check_version!, strict_read_version!(io : IO, version_flag : VersionFlag) : VersionFlag strict_read_version!

Constructor Detail

def self.from_slice(source_ip_address : Socket::IPAddress, slice : Bytes, ar_type : ARType, version_flag : VersionFlag = VersionFlag::V5) : Fragment #

[View source]
def self.from_string(source_ip_address : Socket::IPAddress, string : String, ar_type : ARType, version_flag : VersionFlag = VersionFlag::V5) : Fragment #

[View source]
def self.new(version : VersionFlag, arType : ARType, sourceIpAddress : Socket::IPAddress) #

[View source]

Instance Method Detail

def addressType : AddressFlag | Nil #

[View source]
def addressType=(addressType : AddressFlag | Nil) #

[View source]
def arType : ARType #

[View source]
def arType=(arType : ARType) #

[View source]
def destinationAddress : Address | Nil #

[View source]
def destinationAddress=(destinationAddress : Address | Nil) #

[View source]
def destinationIpAddress : Socket::IPAddress | Nil #

[View source]
def destinationIpAddress=(destinationIpAddress : Socket::IPAddress | Nil) #

[View source]
def fragmentId : UInt8 | Nil #

[View source]
def fragmentId=(fragmentId : UInt8 | Nil) #

[View source]
def get_destination_address : Socket::IPAddress | Address #

[View source]
def payload : Bytes | Nil #

[View source]
def payload=(payload : Bytes | Nil) #

[View source]
def sourceIpAddress : Socket::IPAddress #

[View source]
def sourceIpAddress=(sourceIpAddress : Socket::IPAddress) #

[View source]
def successed : Bool | Nil #

[View source]
def successed=(successed : Bool | Nil) #

[View source]
def to_ask_slice(version_flag : VersionFlag = VersionFlag::V5) : Bytes #

[View source]
def to_reply_slice(version_flag : VersionFlag = VersionFlag::V5) : Bytes #

[View source]
def to_slice(ar_type : ARType, version_flag : VersionFlag = VersionFlag::V5) : Bytes #

[View source]
def to_slice #

[View source]
def version : VersionFlag #

[View source]
def version=(version : VersionFlag) #

[View source]