home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!aspentec!tto
- From: tto@aspentec.com
- Newsgroups: comp.protocols.tcp-ip.ibmpc
- Subject: Re: TSRs ...
- Message-ID: <1992Sep3.121205.863@aspentec.com>
- Date: 3 Sep 92 12:12:05 EST
- References: <Btx5J4.2tD@watserv1.uwaterloo.ca> <1992Sep2.130319.862@aspentec.com> <Btyu2v.AG3@watserv1.uwaterloo.ca>
- Distribution: world
- Organization: Aspen Technology, Inc. Cambridge, MA.
- Lines: 55
-
- In article <Btyu2v.AG3@watserv1.uwaterloo.ca>,
- eengelke@sail.uwaterloo.ca (Erick Engelke) writes:
-
- > tto@aspentec.com writes:
- >>...
- >>Yes, many developers have no idea how to do things properly in the DOS
- >>environment, let alone making programs suitable for a TSR. E.g., Sun's
- >>PC/NFS uses malloc() and DEC's Pathwork TCP/IP (written by 3Com) traps
- >>INT 2F (AX=1122) and promptly undoes itself whenever one issues an
- >>INT 21 (AH=31) to terminate and stay resident!
- >
- > HP and 3com co-developed that product and it seems to have Microsoft
- > involved somehow. Since I've only dealt with the tech staff, we were
- > all quite uncertain how many lawyers it takes to write a network stack.
-
- :-) And it is real fun when one calls DEC up about problems in these
- programs!
-
- > Anyways, it's a bit of a challenge to TSRize their programs. You must
- > write a function with the same name as their function which intercepts
- > the int 2f interceptor to prevent this from happenning. That one caught
- > me by surprise too. But I didn't think it was widespread enough
- > a system to comment on it, but it took me a day to figure out.
-
- I took a different tack. I intercepted INT 2F (AX=1122) myself, bypassed
- their exit handler when I installed the TSR, and activated their exit
- handler when I deinstalled the TSR. I did not want to change my code
- again when they decided to modify their exit handler in the future.
-
- Caveat: apparently inside a handler for INT 2F (AX=1122) one cannot
- call INT 21 (AH=25) to change interrupt vectors. One must modify the
- memory locations directly or DOS will be very confused.
-
- >>Another nice thing about FTP's PC/TCP package is that it allows an easy
- >>access to the global file descriptors. With other packages one has
- >>to do more work in order to share a descriptor among several applications.
- >>(By the way, sharing file descriptors is one of the few things that can
- >>be done more easily on DOS than on Unix.)
- >
- > Yes, most of the others require you to change your PSP back to the
- > originator's. That's easy enough when they provide source, but the
- > one's that don't are a true headache because you have to reverse engineer
- > or run through hoola hoops just to do shared access. I don't mind
- > doing the work, but when it cuts into processor performance or carves
- > out more memory, I start looking at new solutions.
-
- In general I just do everything with my TSR's PSP. It simplifies things
- in the long run.
-
- Tak.
- -----------------------------------------------------------------------------
- Tak To (617) 497-9020 x377
- Aspen Technology, Inc Fax: (617) 497-7806
- 243 Vassar St, Cambridge, Ma 02139. tto@aspentec.com
- -----------------------------------------------------------------------------
-