class Rex::Proto::Rmi::Model::Continuation

This class provides a representation of an RMI continuation stream

Attributes

address[RW]

@!attribute address

@return [String] the end point address
length[RW]

@!attribute length

@return [Fixnum] the end point address length
port[RW]

@!attribute port

@return [Fixnum] the end point port

Private Instance Methods

decode_address(io) click to toggle source

Reads the end point address from the IO

@param io [IO] the IO to read from @return [String]

# File lib/rex/proto/rmi/model/continuation.rb, line 35
def decode_address(io)
  version = read_string(io, length)

  version
end
decode_length(io) click to toggle source

Reads the end point identifier address length from the IO

@param io [IO] the IO to read from @return [Fixnum]

# File lib/rex/proto/rmi/model/continuation.rb, line 25
def decode_length(io)
  length = read_short(io)

  length
end
decode_port(io) click to toggle source

Reads the end point port from the IO

@param io [IO] the IO to read from @return [Fixnum]

# File lib/rex/proto/rmi/model/continuation.rb, line 45
def decode_port(io)
  port = read_int(io)

  port
end
encode_address() click to toggle source

Encodes the address field

@return [String]

# File lib/rex/proto/rmi/model/continuation.rb, line 61
def encode_address
  address
end
encode_length() click to toggle source

Encodes the length field

@return [String]

# File lib/rex/proto/rmi/model/continuation.rb, line 54
def encode_length
  [length].pack('n')
end
encode_port() click to toggle source

Encodes the port field

@return [String]

# File lib/rex/proto/rmi/model/continuation.rb, line 68
def encode_port
  [port].pack('N')
end