I recall someone asking a question about the sendfile system call last month. My response was less than helpful, given their specific request regarding sockets. The December Linux Journal has an article that should answer the question and then some. It's a very good read.