home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!usc!davidp
- From: davidp@stealth.usc.edu (David Peterson)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: MacTCP - getservbyname code, anyone - inetd server
- Date: 26 Jan 1993 12:21:22 -0800
- Organization: University of Southern California, Los Angeles, CA
- Lines: 29
- Distribution: world
- Message-ID: <1k46g2INN3kq@stealth.usc.edu>
- References: <bobert.727074187@godzilla> <1j73beINN78i@stealth.usc.edu> <bobert.727567325@godzilla> <1993Jan22.185307.20294@dtint.uucp>
- Reply-To: davidp@usc.edu
- NNTP-Posting-Host: stealth.usc.edu
-
-
- In article <1993Jan22.185307.20294@dtint.uucp>, tom@dtint.uucp (Thomas R. Kimpton) writes:
- |> I've thought, and I'm sure others have, about writing an "inetd"
- |> program for the mac that would provide services on the mac. It
- |> would have a services file that had the service name, protocol
- |> (UDP/TCP), port number, and program to launch. However, I came
-
- I've done this. I'm in the process of debugging it and writing it up as a
- possible MacHack paper. Send me mail if you want a copy of it to test out.
- Right now I've got an inetd, control panel to configure it, fingerd, rshd,
- and a one-way rcp.
-
- |> across a major snag: When you create a MacTCP stream you have
- |> to give it a buffer for input buffering. There is no provision
- |> for replacing the existing buffer with a new one. This means that
- |> if I want to have my program setting on a port, then hand that
- |> port to another program, the memory buffer will come from
- |> my heap, and if I quit, the buffer I handed off with the
- |> stream is no longer valid. While it's possible to do, it wouldn't
-
- Allocate memory for the MacTCP buffer in the system heap. This came
- from DTS as the safest place to put shared memory.
-
- I hadn't thought about chaning the buffer size on a per-stream basis,
- I just make them all 8k. It wouldn't be hard to put an extra parameter
- in the configuration specifying buffer size though.
-
-
- -dave.
-