home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.amiga.programmer:13308 comp.sys.amiga.datacomm:6311
- Path: sparky!uunet!cs.utexas.edu!torn!cunews!revcan!sidus!atronx.OCUnix.On.Ca!rwm
- From: rwm@atronx.OCUnix.On.Ca (Russell McOrmond)
- Message-ID: <rwm.716338721@atronx.OCUnix.On.Ca>
- Date: 12 Sep 92 16:58:41 EST
- Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.datacomm
- Subject: Re: How to store client data in XPR structure ?
- In-Reply-To: sysop@alphanet.alphanet.ch (Marc SCHAEFER)
- References: <sysop.0ddm@alphanet.alphanet.ch>
- Lines: 47
-
- sysop@alphanet.alphanet.ch (Marc SCHAEFER) writes:
- >I want to call XPR functions from an reentrant environment, ie no
- >global variable. However I need to pass some information in the XPR
-
- Here is what I do within Welmat. Welmat has a global pointer that has
- a list of 'slaves', and one of the entries in a slave structure is a pointer
- to the process structure. I do a FindTask(NULL) and compare until I find
- the proper slave, and thus all the information I would need to know about
- the slave.
-
- P.S. the xpr_data pointer is a ponter that the XPR protocol itself sets up
- to point to it's information, and is *NOT* to be modified by the host.
-
- >internal structure, I wouldn't be able to use it and I would have to
- >add a field to the XPR structure (thus jeopardizing upward compatibility).
-
- Since the XPR_IO structure is not 'passed back' in any of the
- callbacks, even adding to the structure will not give you anything. The
- only way I know of to handle things in a re-entrant environment is to
- use the task list/FindTask(NULL) method I described above.
-
-
- By the way, if you would like to get involved in a possible future XPR
- enhancement document (All completely backward compatable to XPR 2.0),
- please let me know. I'm trying to put together a document of 'problems'
- and proposed solutions. We will then be able to discuss which methods would
- be best to implment, and then release a new document (XPR 3.0?) so that
- others can make use of these extended features in their software.
-
- Willy is currently on a vacation, and I'll be sending him a preliminary
- document when he emails me that he is back. If you have any issues that
- you would like to get dealt with in the next revision of the document,
- please let us know.
-
- >Thanks in advance
- >Bye Ms...
-
- >+------------------_+-----------------------------------------------+
- >| Marc SCHAEFER _ //| sysadm@alphanet.ch -or- schaefer@di.epfl.ch |
- >| Battieux 6c \X/ | MUD:mud.imp.ch@2345 FTP:liasun3.epfl.ch:/pub2 |
- >| 2013 COLOMBIER CH| Week fast response mail schaefer@di.epfl.ch |
- >+-------------------+-----------------------------------------------+
- > We pay for incoming and outgoing mail, please don't send long files
- --
- Opinions expressed in this message are my Own. I represent nobody else.
- Russell McOrmond rwm@Atronx.OCUnix.On.Ca Net Support:(613) 230-2282(V.32Bis)
- FidoNet 1:163/109 Welmat Help 1:1/139 Current WELMAT 'keeper of sources'.
-