From owner-freebsd-questions Thu Aug 22 15:43:50 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA25086 for questions-outgoing; Thu, 22 Aug 1996 15:43:50 -0700 (PDT) Received: from Arizona.EDU (Penny.Telcom.Arizona.EDU [128.196.128.217]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA25075 for ; Thu, 22 Aug 1996 15:43:46 -0700 (PDT) Received: from sun1paztcn.wr.usgs.gov by Arizona.EDU (PMDF V5.0-5 #2381) id <01I8KXRJ37TSCQFCLV@Arizona.EDU>; Thu, 22 Aug 1996 15:29:24 -0700 (MST) Received: from localhost by sun1paztcn.wr.usgs.gov (4.1/SMI-4.1) id AA11374; Thu, 22 Aug 1996 15:28:10 -0700 (MST) Date: Thu, 22 Aug 1996 15:28:09 -0700 From: Doug Wellington Subject: Re: Creating an inetd server. In-reply-to: "Your message of Thu, 22 Aug 1996 14:08:26 GMT." To: "Jon T. Ilko" Cc: freebsd-questions@freebsd.org, doug@sun1paztcn.wr.usgs.gov Message-id: <9608222228.AA11374@sun1paztcn.wr.usgs.gov> MIME-version: 1.0 Content-type: TEXT/PLAIN; CHARSET=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Previously: > I'm trying to create a simple server that >will run from inetd on port 1211. You're working too hard! ;-) When you use inetd to control access to a process, all you need to do in that process is to read from stdin and write to stdout. Don't worry about binding to a socket and all that, it's what inetd does for a living... (One nice thing about it is that you can test your server without inetd - just fire it up from the command line and interact with it...) One of the cardinal rules with reading is to make sure you explicitly specify the size of your buffers! Don't let anyone send you a huge input line and overrun your buffers... -Doug Doug Wellington doug@sun1paztcn.wr.usgs.gov System and Network Administrator US Geological Survey, Tucson, AZ Project Office According to proposed Federal guidelines, this message is a "non-record". Hmm, I wonder if _everything_ I say is a "non-record"...? FreeBSD and Apache - the best real tools for the virtual world! Check out www.freebsd.org and www.apache.org... Just say NO to Netscape Navigator!