Class: RubySMB::Dispatcher::Base
- Inherits:
-
Object
- Object
- RubySMB::Dispatcher::Base
- Defined in:
- lib/ruby_smb/dispatcher/base.rb
Overview
Provides the base class for the packet dispatcher.
Direct Known Subclasses
Instance Method Summary collapse
-
#nbss(packet) ⇒ Fixnum
NBSS header to go in front of
packet. - #recv_packet ⇒ Object abstract
- #send_packet(packet) ⇒ Object abstract
Instance Method Details
#nbss(packet) ⇒ Fixnum
Returns NBSS header to go in front of packet.
5 6 7 |
# File 'lib/ruby_smb/dispatcher/base.rb', line 5 def nbss(packet) [packet.do_num_bytes].pack('N') end |
#recv_packet ⇒ Object
This method is abstract.
15 16 17 |
# File 'lib/ruby_smb/dispatcher/base.rb', line 15 def recv_packet raise NotImplementedError end |
#send_packet(packet) ⇒ Object
This method is abstract.
10 11 12 |
# File 'lib/ruby_smb/dispatcher/base.rb', line 10 def send_packet(packet) raise NotImplementedError end |