[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Trapping Broadcasts in Detached Processes?

» close window

The Question is:

 
Is it possible to trap a broadcast message in a detached process?  I'd like to
 trap the mail message announcement.  Thank you!


The Answer is :

 
 
  You will need to code the application to acquire a terminal device,
  to associate a mailbox with the terminal (possibly via a call to
  lib$asn_with_mbx), and trap the messages there -- among the easiest
  ways to acquire a terminal is via the pseudo-terminal API (see the
  I/O User's Reference Manual), though there are other ways.
 
  The AskQ area (referenced in the FAQ) has some related examples:
 
    Example-C How To Trap Terminal Broadcast Messages
    Example-C Using A Pseudo Terminal
    Example-FORTRAN Using A Broadcast Mailbox To Intercept Messages
 
  Topic (1554) is also potentially related.

answer written or last revised on ( 13-FEB-2004 )

» close window