🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5335

Re: Finding Screens

#5335
From: brianm Brian Moffet
Date: Tue, 18 Sep 1990 16:19
25 lines
1553 bytes
tron1@tronsbox.xei.com (HIM) writes:

>I will use message ports to have the client tell the master that there is a
>window there to avoid confusion, but inso far as FINDING the screen goes...

>Should I have the client wak the Screen structure list starting at the
>workbench screen ? (I assume this will break in 2.0) or should it get the
>pointer as a message from the host ????

Why don't you have the screen memory as part of the message port
structure? 

I am not absolutely positive this would work, but I would imagine that
you could allocate the screen via OpenScreen( &NewScreen ), and copy
the resulting Screen structure into you Message Port Structure.
Your pointers to all the relevent data would be there, which might cause
a problem if you get into an MMU equipped amiga (whose OS knows about it).

Well, perhaps not, but I would not walk through the list.  I would make
the screen info part of the message port, either via pointer in the 
message port, or have the screen as part of the message port.  I am not
sure which is more "proper" as far as kindness to the OS is concerned.
(ie more portable)

brian moffet
Technical Details
Message-ID: <U=A.653674764@sco>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!sco!brianm
References: <26f437ee-918comp.sys.amiga.tech@tronsbox.xei.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!sco!brianm
From: brianm (Brian Moffet)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Finding Screens
Message-ID: <U=A.653674764@sco>
Date: 18 Sep 90 16:19:24 GMT
References: <26f437ee-918comp.sys.amiga.tech@tronsbox.xei.com>
Sender: news@sco.COM
Lines: 25