Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!soe From: soe@ames.arc.nasa.gov (Brad Soe) Newsgroups: comp.sys.mac.programmer Subject: Init and DA... Keywords: Init Message-ID: <19709@ames.arc.nasa.gov> Date: 19 Dec 88 16:18:50 GMT Organization: NASA - Ames Research Center, Moffett Field, CA Lines: 31 I want to implement a driver or INIT that will alert a user when he has received new mail. When a user recieves mail, a packet is sent out to the macintosh, and if it is on, a message is displayed on the screen. I want to implement something like Tops, where a connction is made when the system starts up, and then it runs while the mac is doing other things. I am not 100% sure how to implement it, nor what is the best way to do it. I want to write a piece of code, that will open a socket to the Appletalk when the system starts up, then poll and wait for packets while the Mac is running and doing other things. I want it to be a DA, so that when the Mac gets a packet for it will use the Notification Manager to tell the user that there is something there for it. This is what I think I need. I need an INIT that will make a call to a drivers open command, to start the connection, and register the connection to be closed when the system shutsdown. Is there a way to create a driver to be started (opened) when the system starts up, or do I need an INIT that will start it for me. Also, I am not that handy with assembly language, so I would like to write as much C code as possible. I am just looking for the best possible solution to the problem. Thanks Brad Soe soe@ames.arc.nasa.gov