title: C, sendfile() and send() difference?
body: <p>sendfile() copies data between two file descripters within kernel space. Somewhere I saw if you are writing a web server in C in linux you should use send() and recv() instead of using write() and read(). So is the send() use the kernel space as well?</p>
  
  <p>Whatever I use for sending - sendfile() or send() - on the client side I'll be using recv() right?</p>
  
  <p>On the flip side, <a href="http://linux.die.net/man/2/send">man page</a> says: "The only difference between send() and write(2) is the presence of flags. With a zero flags argument, send() is equivalent to write(2)." </p>