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) ⇒ String
Creates a NetBIOS Session Service (NBSS) header.
- #recv_packet ⇒ Object abstract
- #send_packet(_packet) ⇒ Object abstract
Instance Method Details
#nbss(packet) ⇒ String
Creates a NetBIOS Session Service (NBSS) header
9 10 11 12 13 14 |
# File 'lib/ruby_smb/dispatcher/base.rb', line 9 def nbss(packet) nbss = RubySMB::Nbss::SessionHeader.new nbss.session_packet_type = RubySMB::Nbss::SESSION_MESSAGE nbss.packet_length = packet.do_num_bytes nbss.to_binary_s end |
#recv_packet ⇒ Object
This method is abstract.
22 23 24 |
# File 'lib/ruby_smb/dispatcher/base.rb', line 22 def recv_packet raise NotImplementedError end |
#send_packet(_packet) ⇒ Object
This method is abstract.
17 18 19 |
# File 'lib/ruby_smb/dispatcher/base.rb', line 17 def send_packet(_packet) raise NotImplementedError end |