[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference csc32::consolemanager

Title:POLYCENTER Console Manager
Notice:Kits, Scans, Docs on CSC32:: as PCM$KITS:,PCM$DOCS:, PCM$SCANS:
Moderator:CSC32::BUTTERWORTH
Created:Thu Aug 06 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1541
Total number of notes:6564

950.0. "Ack and Ens pre-processor" by 52336::BAUDELLE () Tue Aug 29 1995 10:45

    
    
    It looks like the re-send of events made by the acknowledge doesn't
    go through the Ens pre-processor ?
    
    Am i right or is there something wrong with the pre-processor i'm
    currently using ?
    
    thanks
    
    Pierre
T.RTitleUserPersonal
Name
DateLines
950.1CSC32::BUTTERWORTHGun Control is a steady hand.Tue Aug 29 1995 12:498
    Pierre,
       I'm not quite following you here. If I read this correctly, you
    are acknowledging a event (within the Mutli-Line Window for example)
    and the preprocessor doesn't get a chance to process it? I can
    check the code to see if these kinds of events are not passed.
    
    Regs,
      Dan
950.2Yes Please52336::BAUDELLEWed Aug 30 1995 03:4113
    
    Dan,
    
    You are right and i'd like to use the pre-processor to modify some
    event fields in order to prevent the same filter to apply when you
    acknowledge an event (An action routine would then be activated when
    receiving an event but not when ack it)
    
    Thanks to check the code
    
    Regards
    
    Pierre
950.3CSC32::BUTTERWORTHGun Control is a steady hand.Wed Sep 06 1995 15:4623
    Pierre,
      As I expected, there is no special case for acknowledged events. They
    will be passed on to the preprocessor assuming you are using the
    CMUserAcknowlegeEvent routine. The code will call the internal routine
    to send the event to ENS just as the controller daemons do. The only real 
    difference in an event and an acknowleged event is that the event type is 
    set to CMEventTypeAck. Use the following 'C" macro to look at the type:
    
    CMEventType(event)
    
    to see if it's equal to CMEventTypeAck.  The macro and CMEventTypeAck
    are defined in console.h. I would also suggest putting in some
    debugging code that can be turned on an off. Whenever I write an action
    or preprocessor I create a logical name and then use the 'C' RTL
    routine "getenv" to interrogate it. yes, getenv will look for a logical
    name as well as a symbol so you don't have to code up a call to the
    $TRNLNM service yourself.
    
    Regs,
      Dan
    
    Regs,
      Dan