def __init__(self, totalLength, pduType, userId):
        """
        @summary: Set pduType as constant
        @param totalLength: total length of PDU packet
        """
        CompositeType.__init__(self)
        #share control header
        self.totalLength = UInt16Le(totalLength)
        self.pduType = UInt16Le(pduType)
        #for xp sp3 and deactiveallpdu PDUSource may not be present
        self.PDUSource = UInt16Le(userId, optional = True)
def __init__ ( self , totalLength , pduType , userId ) : CompositeType . __init__ ( self ) self . totalLength = UInt16Le ( totalLength ) self . pduType = UInt16Le ( pduType ) self . PDUSource = UInt16Le ( userId , optional = True )
@summary: Set pduType as constant
        @param totalLength: total length of PDU packet