Add sendfile to socket class.