Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

BinPAC::SMB_andx Class Reference

#include <smb_pac.h>

List of all members.

Public Member Functions

 SMB_andx ()
 ~SMB_andx ()
int parse (const uint8 *const t_begin_of_data, const uint8 *const t_end_of_data, int t_byteorder)
uint8 const & command () const
uint8 const & reserved () const
uint16 const & offset () const

Protected Attributes

uint8 command_
uint8 reserved_
uint16 offset_


Constructor & Destructor Documentation

BinPAC::SMB_andx::SMB_andx  ) 
 

Definition at line 413 of file smb_pac.cc.

References command_, offset_, and reserved_.

00414         {
00415         command_ = 0;
00416         reserved_ = 0;
00417         offset_ = 0;
00418         }

BinPAC::SMB_andx::~SMB_andx  ) 
 

Definition at line 420 of file smb_pac.cc.

00421         {
00422         }


Member Function Documentation

uint8 const& BinPAC::SMB_andx::command  )  const [inline]
 

Definition at line 203 of file smb_pac.h.

References command_, and BinPAC::uint8.

Referenced by SMB_Session::AndxOffset().

00203 { return command_; }

uint16 const& BinPAC::SMB_andx::offset  )  const [inline]
 

Definition at line 205 of file smb_pac.h.

References offset_, and BinPAC::uint16.

Referenced by SMB_Session::AndxOffset().

00205 { return offset_; }

int BinPAC::SMB_andx::parse const uint8 *const  t_begin_of_data,
const uint8 *const  t_end_of_data,
int  t_byteorder
 

Definition at line 424 of file smb_pac.cc.

References command_, offset_, reserved_, and BinPAC::uint8.

Referenced by BinPAC::SMB_write_andx_response::parse(), BinPAC::SMB_write_andx::parse(), BinPAC::SMB_read_andx_response::parse(), BinPAC::SMB_read_andx::parse(), BinPAC::SMB_nt_create_andx::parse(), and BinPAC::SMB_tree_connect_andx::parse().

00425         {
00426         // Checking out-of-bound for "SMB_andx:val"
00427         if ( t_begin_of_data + (4) > t_end_of_data )
00428                 {
00429                 // Handle out-of-bound condition
00430                 throw ExceptionOutOfBound("SMB_andx:val",
00431                         (0) + (4), 
00432                         (t_end_of_data) - (t_begin_of_data));
00433                 }
00434         // Parse "command"
00435         command_ = *((uint8 *) (t_begin_of_data));
00436         
00437         // Parse "reserved"
00438         reserved_ = *((uint8 *) ((t_begin_of_data + 1)));
00439         
00440         // Parse "offset"
00441         offset_ = UnMarshall<uint16>((t_begin_of_data + 2), offset_, t_byteorder);
00442         
00443         return 4;
00444         }

uint8 const& BinPAC::SMB_andx::reserved  )  const [inline]
 

Definition at line 204 of file smb_pac.h.

References reserved_, and BinPAC::uint8.

00204 { return reserved_; }


Member Data Documentation

uint8 BinPAC::SMB_andx::command_ [protected]
 

Definition at line 208 of file smb_pac.h.

Referenced by command(), parse(), and SMB_andx().

uint16 BinPAC::SMB_andx::offset_ [protected]
 

Definition at line 210 of file smb_pac.h.

Referenced by offset(), parse(), and SMB_andx().

uint8 BinPAC::SMB_andx::reserved_ [protected]
 

Definition at line 209 of file smb_pac.h.

Referenced by parse(), reserved(), and SMB_andx().


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 03:16:23 2005 for bro_docs by doxygen 1.3.5