Why doesn't this work??
Code:... n = sendfile(socket_fd,file_fd, NULL, 255);I can use read and write, but I wanted to use sendfile for cleaner codeCode:[raul@horus myserver]$ ./myclient nexus.rnl 40000 Trying to connect Connected to server ERROR writing to socket: Bad file descriptor
Bookmarks