Re: Same data to several sockets with just one syscall ?

2016-02-15 Thread Claudio Scordino
Hi Eric, 2016-02-15 19:16 GMT+01:00 Eric Dumazet : > On Mon, 2016-02-15 at 11:03 +0100, Claudio Scordino wrote: >> Hi Eric, >> >> 2016-02-12 11:35 GMT+01:00 Eric Dumazet : >> > On Fri, 2016-02-12 at 09:53 +0100, Claudio Scordino wrote: >> > >> >>

Re: Same data to several sockets with just one syscall ?

2016-02-15 Thread Claudio Scordino
Hi Eric, 2016-02-12 11:35 GMT+01:00 Eric Dumazet : > On Fri, 2016-02-12 at 09:53 +0100, Claudio Scordino wrote: > >> This makes the application waste time in entering/exiting the kernel >> level several times. > > syscall overhead is usually small. Real cost is actually

Same data to several sockets with just one syscall ?

2016-02-12 Thread Claudio Scordino
Hi all. Suppose I have an application that needs to send the very same data to several sockets already connected. In this case, the application has to call the sendto() syscall several times: for(...) sendto(...) This makes the application waste time in entering/exiting the