DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

ObjectEventNotification(TCL_ADM)


ObjectEventNotification -- register notification function

Syntax

ObjectEventNotification callbackFunction eventType

Description

ObjectEventNotification is used to register a function that will be called by the SCOadmin framework if an OSA sends any events while it is processing an object request. The function is called with one parameter, which is a BMIP response which can be examined using the Bmip(TCL_ADM) routines.

Arguments


callbackFunction
function which is called if an OSA sends an event of the specified type.

eventType
type of event which will be handled by the callback. The value of eventType can be either ``warning'' or ``notification''.
The significant fields are:

Example

proc warningEventHandler event {
       echo "An event was sent of type " [BmipResponseActionType event]
       echo "The message was " [BmipResponseActionData event]
       echo "The error stack (if any) was " [BmipResponseErrorStack event]
}

ObjectEventNotification warningEventHandler warning

See also

OFEvent(TCL_ADM), Bmip(TCL_ADM)
16 September 2002
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003