Parent

Methods

Class/Module Index [+]

Quicksearch

Rex::Proto::DRDA::SERVER_PACKET

Public Instance Methods

read(str="") click to toggle source
# File lib/rex/proto/drda/packet.rb, line 176
def read(str="")
        raise DRDA::Error, "Input isn't a String." if !str.kind_of? String
        self.clear
        i = 0
        while(i < str.size)
                this_ddm = BASIC_DDM.new.read(str[i,str.size])
                self << this_ddm
                i += this_ddm.to_s.size
        end
        return self
end
sz() click to toggle source
# File lib/rex/proto/drda/packet.rb, line 189
def sz; self.to_s.size; end
to_s() click to toggle source
# File lib/rex/proto/drda/packet.rb, line 188
def to_s; self.join; end

[Validate]

Generated with the Darkfish Rdoc Generator 2.