Good day, colleagues!<br><br>Do you know efficient way of sending UDP packets at a fixed rate efficiently?<br><br>As far as I know, there are 2 functions for packets sending - pcap_sendpacket and pcap_sendqueue_transmit. Regarding the first, it's easy to realize this pseudocode:<br>
<br>while (true) {<br>    pcap_send_packet(...);<br>    delay (...);<br>}<br><br>But, as said in WinPcap tutorial,  pcap_send_packet is inefficient if you need high performance (and I need it).<br><br>pcap_sendqueue_transmit is optimized efficient way to send packets, but as I can see, there is no way to specify sending rate in pcap_sendqueue_transmit, i. e. pcap_sendqueue_transmit will send packets as fast as possible which is not suitable in my situation.<br>
<br>Can you give any recommendations?<br clear="all"><br>-- <br>Best regards, Metcherin Sergey.<br>