Module: HrrRbSsh::Message::SSH_MSG_GLOBAL_REQUEST

Extended by:
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,
  },
}

Method Summary

Methods included from Codable

common_definition, conditional_definition, decode, decode_recursively, encode, logger