TPNOTIFY-send notification by client identifier
01TPSVCDEF-REC.
COPY TPSVCDEF.
01TPTYPE-REC.
COPY TPTYPE.
01DATA-REC.
COPY User data.
01TPSTATUS-REC.
COPY TPSTATUS.
CALL "TPNOTIFY" USINGTPSVCDEF-RECTPTYPE-RECDATA-RECTPSTATUS-REC.
TPNOTIFY allows a server to send an unsolicited message to an individual client.
CLIENTID in TPSVCDEF-REC contains a client identifier saved from the TPSVCDEF-REC of a previous or current service invocation.
DATA-REC is the record to be sent and LEN in TPTYPE-REC specifies how much of DATA-REC should be sent. If DATA-REC is a record of type that does not require a length to be specified, then LEN is ignored (and may be 0). If REC-TYPE in TPTYPE-REC is SPACES, DATA-REC and LEN are ignored and a request is sent with no data portion.
Upon successful return from TPNOTIFY, the message has been delivered to the system for forwarding to the identified client. If TPACK was set, then a successful return means the message has been received by the client. Furthermore, if the client has registered an unsolicited message handler, the handler will have been called.
Following is a list of valid settings in TPSVCDEF-REC.
TPNOBLOCK
TPNOBLOCK or TPBLOCK must be set.
TPBLOCK
TPNOBLOCK or TPBLOCK must be set.
TPNOTIME
TPNOTIME or TPTIME must be set.
TPTIME
TPNOTIME or TPTIME must be set.
TPSIGRSTRT
TPNOSIGRSTRT or TPSIGRSTRT must be set.
TPNOSIGRSTRT
TPNOSIGRSTRT or TPSIGRSTRT must be set.
TPACK
TPNOACK or TPACK must be set.
TPNOACK
TPNOACK or TPACK must be set.
Upon successful completion, TPNOTIFY sets TP-STATUS to [TPOK].
Under the following conditions, TPNOTIFY fails and sets TP-STATUS to:
TPEINVAL]
TPENOENT]
TPACK was set.
TPETIME]
TPBLOCK and TPTIME were specified, or TPACK and TPTIME were set and no acknowledgment was received. and TPTIME was specified.
TPEBLOCK]
TPNOBLOCK was specified.
TPGOTSIG]
TPSIGRSTRT was not specified.
TPEPROTO]
TPNOTIFY was called in an improper context (for example, within a client).
TPESYSTEM]
TPEOS]
TPERELEASE]
TPACK is specified and the target is a client from a prior release of BEA TUXEDO which does not support the acknowledgment protocol.
TPBROADCAST(3), TPCHKUNSOL(3), TPINITIALIZE(3), TPSETUNSOL(3), TPTERM(3)