PDU
is abstract base class for all classes which represent a PDU. It contains methods for manipulating PDU header, checking validity of PDU, automatic parsing and generation of optional part of PDU, methods for creating instance of proper class representing certain PDU based only in command id, methods for detection if the PDU is request or response PDU, automatic sequence number assignment, etc. It also implements setData
and getData
methods as the header and optional params parsing and composition is the same for all PDUs. The derived classes on turn implement functions setBody
and getBody
. The PDU
has two descendants, Request
and Response
, which serve as a base classes for concrete PDU classes like SubmitSM, SubmitSMResp etc.
@author Logica Mobile Networks SMPP Open Source Team
@version $Revision: 1.7 $
PDU
class represents a SNMP protocol data unit. The PDU version supported by the BER decoding and encoding methods of this class is v2. The default PDU type is GET. @author Frank Fock @version 1.1 @see PDUv1 @see ScopedPDU
|
|
|
|