Article View: comp.sys.sequent
Article #432Re: porting programs invoked by inetd to ptx?
From: Chris Maltby
Date: Wed, 30 Sep 1992 02:08
Date: Wed, 30 Sep 1992 02:08
30 lines
1809 bytes
1809 bytes
In <1992Sep29.113527.10193@sequent.com> timw@sequent.com (Tim Wright) writes: >In <BvB8DE.40y@news.cso.uiuc.edu> paul@uxc.cso.uiuc.edu (Paul Pomes - UofIllinois CSO) writes: > >>Does anyone have a porting guide for programs meant to be invoked by inetd? > >inetd retruns a TLI endpoint. The top of the stream has "timod" pushed, >so the hackers guide to porting code meant to run under inetd is: >ioctl(s, I_POP, "timod"); >ioctl(s, I_PUSH, "sockmod"); >at which point you have a socket, and all your usual code should work. >Warning: this works for me under TCP 2.1 and 2.2.1, but I cannot guarantee >that it will always do so. If you just want a TLI endpoint that you >can read and write on, you just pop "timod", and push "tirdwr" instead. >Hope this makes things easier for you. Seems to me to be the sort of thing that inetd should do for you with an additional configuration parameter. Eg: #Service Type Proto Module No/Wait User executable Args #---- ------ --- ------ ------ ---- ---------- ---- ftp stream tcp sockmod nowait root /usr/etc/ftpd.new ftpd telnet stream tcp timod nowait root /usr/etc/in.telnetd telnetd Fix? -- Chris Maltby - Softway Pty Ltd Internet: chris@softway.sw.oz.au PHONE: +61-2-698-2322 "I'm waiting for X-Windows to become just that; FAX: +61-2-699-9174 Ex-Windows" - A McGrath.
Technical Details
Message-ID:
<chris.717818910@suite.sw.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!basser.cs.su.oz.au!swift!suite.sw.oz.au!chrisReferences:
<BvB8DE.40y@news.cso.uiuc.edu> <1992Sep29.113527.10193@sequent.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.sequent Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!basser.cs.su.oz.au!swift!suite.sw.oz.au!chris From: chris@suite.sw.oz.au (Chris Maltby) Subject: Re: porting programs invoked by inetd to ptx? Organization: Softway Pty Ltd Date: 30 Sep 92 02:08:30 GMT Message-ID: <chris.717818910@suite.sw.oz.au> References: <BvB8DE.40y@news.cso.uiuc.edu> <1992Sep29.113527.10193@sequent.com> Sender: news@softway.sw.oz.au (Usenet) Lines: 30