Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!LBL.GOV!nagy%warner.hepnet
From: nagy%warner.hepnet@LBL.GOV (Frank J. Nagy, VAX Wizard & Guru)
Newsgroups: comp.os.vms
Subject: Re: Can I set an AST for BRDCST messages?
Message-ID: <880603103031.25600222@LBL.Gov>
Date: 3 Jun 88 17:30:31 GMT
Sender: usenet@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 25

> I am looking for a way to set an AST for receiving a broadcast message
> from $BRKTHRU and handling it. I know its possible because TPU seems
> to do it nicely but I can't find how. Since I want to handle the
> message SET BROADCAST is not enough, and since the message is an
> asynchronous event I assume I need an AST.
     
There are two ways to do this.

#1: Use the SMG routines.  SMG provides routines for handling broadcast
    messages, including getting a notification AST.  See the descriptions
    of the SMG routines and the introductory SMG chapter in the RunTime
    Library manuals.

#2: Create a temporary mailbox and associate this with a channel open to
    the terminal.  The simpliest way to do this is with LIB$ASN_WITH_MBX
    which encapsulates the $CREMBX and $ASSIGN.  You then do a $QIO to
    read from the mailbox with a completion AST.  Broadcast notification
    messages come via the mailbox.  This is descibed in the chapter on
    the terminal driver in the I/O User's Guide Part 1.
    

= Frank J. Nagy   "VAX Guru & Wizard"
= Fermilab Research Division EED/Controls
= HEPNET: WARNER::NAGY (43198::NAGY) or FNAL::NAGY (43009::NAGY)
= BitNet: NAGY@FNAL
= USnail: Fermilab POB 500 MS/220 Batavia, IL 60510