From owner-freebsd-net Fri Mar 1 11:20:33 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 1741F37B41D for ; Fri, 1 Mar 2002 11:20:22 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020301192021.ESEA2951.rwcrmhc53.attbi.com@InterJet.elischer.org>; Fri, 1 Mar 2002 19:20:21 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA12473; Fri, 1 Mar 2002 11:03:40 -0800 (PST) Date: Fri, 1 Mar 2002 11:03:38 -0800 (PST) From: Julian Elischer To: "George V. Neville-Neil" Cc: cfliu , freebsd-net@FreeBSD.ORG Subject: Re: Is recv/sendmsg important for AF_INET only sockets? In-Reply-To: <200203011754.JAA1829498@meer.meer.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 1 Mar 2002, George V. Neville-Neil wrote: > > Hi, I am implementing a small BSD socket layer which supports only the = > > AF_INET family. I am wondering whether recvmsg() and sendmsg() calls are = > > required for the INET protocol family. I don't know if I should = > > implemented it or not. I have looked up some open source projects and = > > grepped for recvmsg and sendmsg calls but couldn't find any. How often = > > do people use recvmsg/sendmsg() calls (also readv()/writev()) in their = > > BSD socket based Internet applications? Is it safe NOT to implement = > > these functions for a INET socket? > > These are used by applications that are implemented on top of UDP > and they're very useful. If I were a consumer of your product I'd be > pretty disappointed if these calls were not there. which, readv or recvmsg? Personally I've used recvmsg() quite a bit but usually on special NON IP protocols. I've never used readv(), so if you're writing the stack for embedded use you may be able to do without these. You may consider writing an extension module that gives these extra interfaces if people want them. > > Later, > George > > -- > George V. Neville-Neil gnn@neville-neil.com > NIC:GN82 > > "Those who would trade liberty for temporary security deserve neither" > - Benjamin Franklin > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message