Example #1
0
 /// <summary>
 /// Send a queue of raw packets to the network.
 /// </summary>
 /// <param name="p"></param>
 /// <param name="queue"></param>
 /// <param name="sync">determines if the send operation must be synchronized:
 /// if it is non-zero, the packets are sent respecting the timestamps,
 /// otherwise they are sent as fast as possible</param>
 /// <returns>The amount of bytes actually sent.
 /// If it is smaller than the size parameter, an error occurred
 /// during the send. The error can be caused by a driver/adapter
 /// problem or by an inconsistent/bogus send queue.</returns>
 internal static int pcap_sendqueue_transmit(IntPtr /*pcap_t * */ p, ref pcap_send_queue queue, int sync)
 {
     return(UseWindows
         ? Windows.pcap_sendqueue_transmit(p, ref queue, sync)
         : Unix.pcap_sendqueue_transmit(p, ref queue, sync));
 }