Re: sendfile system call and UDP sockets

2005-11-09 Thread Tom Marshall
Here is the program I use and the error I get after I send one UDP packet to this machine on the port it listens on ,9000. [...] The error get is: errno = ESPIPE sendfile: Destination address required You might want to try connect()ing the socket... -- Coincidences

sendfile system call and UDP sockets

2005-11-08 Thread John Que
Hello, Is it possible to use the sendfile system call with UDP sockets in linux kernel ? I saw in net/ipv4/udp.c a comment made by Hirokazu Takahashi, which says sendfile() on UDP works now. (this is in the linux 2.6.* kernels). But when I am trying to write a user space program which tries

Re: sendfile system call and UDP sockets

2005-11-08 Thread Ian McDonald
But when I am trying to write a user space program which tries using sendfile with UDP sockets I encounter erros. (with TCP sockets sendfile works OK). If you want help you need to supply more information. Please supply a small sample program and also the error messages. You should also

Re: sendfile system call and UDP sockets

2005-11-08 Thread John Que
Hello, Thanks. I use 2.6.11-1 kernel ,Fedora Core 4. Here is the program I use and the error I get after I send one UDP packet to this machine on the port it listens on ,9000. (Note : input.txt is a nonempty small input file.) #include sys/sendfile.h #include sys/stat.h #include sys/socket.h