From owner-freebsd-questions Fri May 10 18:32:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 13AE437B401 for ; Fri, 10 May 2002 18:32:18 -0700 (PDT) Received: from hades.hell.gr (patr530-a063.otenet.gr [212.205.215.63]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g4B1WDG1002070; Sat, 11 May 2002 04:32:14 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g4B1WCg5009316; Sat, 11 May 2002 04:32:12 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.2/Submit) id g4B1W0Ob009315; Sat, 11 May 2002 04:32:00 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 11 May 2002 04:31:59 +0300 From: Giorgos Keramidas To: Lance Bland Cc: questions@FreeBSD.ORG Subject: Re: send vs write, recv vs read on socket? Message-ID: <20020511013159.GA9063@hades.hell.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-05-09 09:00, Lance Bland wrote: > hi fellow FreeBSDers- > > On FreeBSD, what is the main difference(s) between send vs write on > a socket and recv vs read on a socket? > > Besides the added argument flag at the end, and if that flag is zero. There are various functions to send data down a socket. All of them are essentially wrappers to the sendmsg() syscall. They are explained in detail in Richard W. Stevens' book "TCP/IP Illustrated, volume 2". And there's always the source :) Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message