Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send multiple datagrams using a single send() call?

When datagram-based socket (raw socket or UDP) is used with gather-style send, all the data are concatenated to form a single IP packet. Is there a way to send several datagrams using a single call?


1 Answers

The call you are looking for is sendmmsg() however it is not yet implemented or even up for much discussion. You can see it's receive side twin recvmmsg() in the latest 2.6.3 Linux kernel.

like image 181
Steve-o Avatar answered Sep 13 '25 16:09

Steve-o