Re: Socket programming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx 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 <glynn@xxxxxxxxxxxxxxxxxx>




_____________________________________________________________
Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux