Sha256: 657c23b3a8c9ec728f62803593e1fffe9698962da4ce26bb282e2481ff45e676

Contents?: true

Size: 384 Bytes

Versions: 11

Compression:

Stored size: 384 Bytes

Contents

# Provides the base class for the packet dispatcher.
class RubySMB::Dispatcher::Base
  # @param packet [#length]
  # @return [Fixnum] NBSS header to go in front of `packet`
  def nbss(packet)
    [packet.do_num_bytes].pack('N')
  end

  # @abstract
  def send_packet(packet)
    raise NotImplementedError
  end

  # @abstract
  def recv_packet
    raise NotImplementedError
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_smb-0.0.18 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.17 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.16 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.15 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.14 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.13 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.12 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.11 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.10 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.9 lib/ruby_smb/dispatcher/base.rb
ruby_smb-0.0.8 lib/ruby_smb/dispatcher/base.rb