Class: HrrRbSsh::Message::SSH_MSG_GLOBAL_REQUEST

Inherits:
Object
  • Object
show all
Includes:
Codable
Defined in:
lib/hrr_rb_ssh/message/080_ssh_msg_global_request.rb

Constant Summary collapse

ID =
self.name.split('::').last
VALUE =
80
DEFINITION =
[
  #[DataType, Field Name]
  [DataType::Byte,      :'message number'],
  [DataType::String,    :'request name'],
  [DataType::Boolean,   :'want reply'],
]
TCPIP_FORWARD_DEFINITION =
[
  #[DataType, Field Name]
  #[DataType::String,   :'request name' : "tcpip-forward"],
  [DataType::String,    :'address to bind'],
  [DataType::Uint32,    :'port number to bind'],
]
CANCEL_TCPIP_FORWARD_DEFINITION =
[
  #[DataType, Field Name]
  #[DataType::String,   :'request name' : "cancel-tcpip-forward"],
  [DataType::String,    :'address to bind'],
  [DataType::Uint32,    :'port number to bind'],
]
CONDITIONAL_DEFINITION =
{
  # Field Name => {Field Value => Conditional Definition}
  :'request name' => {
    "tcpip-forward"        => TCPIP_FORWARD_DEFINITION,
    "cancel-tcpip-forward" => CANCEL_TCPIP_FORWARD_DEFINITION,
  },
}

Instance Attribute Summary

Attributes included from Loggable

#log_key, #logger

Method Summary

Methods included from Codable

#common_definition, #conditional_definition, #decode, #decode_recursively, #encode, #initialize

Methods included from Loggable

#log_debug, #log_error, #log_fatal, #log_info, #log_warn