Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!ISUMVS.BITNET!GG.SPY From: GG.SPY@ISUMVS.BITNET ("John Hascall") Newsgroups: comp.os.vms Subject: Re: Can I set an AST for BRDCST messages? Message-ID: <8806062332.AA13299@ucbvax.Berkeley.EDU> Date: 4 Jun 88 15:55:26 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 32 > Date: Thu, 2 Jun 88 19:09:00 O > Sender: INFO-VAX Discussion> From: TENE@TECHMAX > Subject: Can I set an AST for BRDCST messages? > To: John Hascall > > 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. > > What kind of AST is it? > HOW do I set such an AST? > > Does anybody have any clues? > 1) use SYS$CREMBX to create a mailbox (and assign a channel to it) 2) use SYS$ASSIGN to assign a channel to the terminal and associate the mailbox to the terminal 3) use SYS$QIOW specifying the mailbox_channel and function IO$_SETMODE+IO$M_READATTN and an AST_RTN now in the AST_RTN you will need to 1) read the mailbox channel using SYS$QIOW (the format of the message is in the I/O user's refernece manual Vol 1 in either the terminal driver or mailbox driver section) 2) re-enable the READATTN as in 3) above John Hascall Iowa State Univ Computation Center Ames, Iowa