Implement SendFileHandler for sockets.