From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ardhan Madras" Subject: Re: Socket programming Date: Mon, 23 Mar 2009 08:03:26 -0700 Message-ID: <20090323080326.1C33F888@resin13.mta.everyone.net> Reply-To: Mime-Version: 1.0 Return-path: Sender: linux-c-programming-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Glynn Clements Cc: linux-c-programming@vger.kernel.org In the glibc man about send() and recv(), it says: " The only difference between send() and write() is the presence of flags. With zero flags parameter, send() is equivalent to write(). ..." --- ajhwb --- glynn@gclements.plus.com wrote: Apart from the comments which have already been made: There's no reason to use send() and recv() if the flags argument is zero. You may as well use read() and write(). Or convert the descriptor to a FILE* with fdopen() and use fread() and fwrite(). -- Glynn Clements _____________________________________________________________ Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com