struct SOCKS::Frames::Fragment
- SOCKS::Frames::Fragment
- SOCKS::Frames
- Struct
- Value
- Object
Defined in:
socks/frames/fragment.crConstructors
- .from_slice(source_ip_address : Socket::IPAddress, slice : Bytes, ar_type : ARType, version_flag : VersionFlag = VersionFlag::V5) : Fragment
- .from_string(source_ip_address : Socket::IPAddress, string : String, ar_type : ARType, version_flag : VersionFlag = VersionFlag::V5) : Fragment
- .new(version : VersionFlag, arType : ARType, sourceIpAddress : Socket::IPAddress)
Instance Method Summary
- #addressType : AddressFlag | Nil
- #addressType=(addressType : AddressFlag | Nil)
- #arType : ARType
- #arType=(arType : ARType)
- #destinationAddress : Address | Nil
- #destinationAddress=(destinationAddress : Address | Nil)
- #destinationIpAddress : Socket::IPAddress | Nil
- #destinationIpAddress=(destinationIpAddress : Socket::IPAddress | Nil)
- #fragmentId : UInt8 | Nil
- #fragmentId=(fragmentId : UInt8 | Nil)
- #get_destination_address : Socket::IPAddress | Address
- #payload : Bytes | Nil
- #payload=(payload : Bytes | Nil)
- #sourceIpAddress : Socket::IPAddress
- #sourceIpAddress=(sourceIpAddress : Socket::IPAddress)
- #successed : Bool | Nil
- #successed=(successed : Bool | Nil)
- #to_ask_slice(version_flag : VersionFlag = VersionFlag::V5) : Bytes
- #to_reply_slice(version_flag : VersionFlag = VersionFlag::V5) : Bytes
- #to_slice(ar_type : ARType, version_flag : VersionFlag = VersionFlag::V5) : Bytes
- #to_slice
- #version : VersionFlag
- #version=(version : VersionFlag)
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) : Stringencode_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
#
def self.from_string(source_ip_address : Socket::IPAddress, string : String, ar_type : ARType, version_flag : VersionFlag = VersionFlag::V5) : Fragment
#