<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<DIV class=plainMail>Hello,</DIV>
<DIV class=plainMail>&nbsp;</DIV>
<DIV class=plainMail>I am new to pcap. I am trying to use pcap to implement a switch. I have a few questions about the pcap_sendqueue. </DIV>
<DIV class=plainMail>&nbsp;</DIV>
<DIV class=plainMail>Can I create a queue and reuse it again and again? I mean, I want to create a queue,&nbsp;capture packets and put them into the queue until it is full. Then I will send the packets out using pcap_sendqueue_transmit and continue the same process.</DIV>
<DIV class=plainMail>&nbsp;</DIV>
<DIV class=plainMail>Does the queue have to be full before pcap_sendqueue_transmit is called?</DIV>
<DIV class=plainMail>&nbsp;</DIV>
<DIV class=plainMail>One more question about device handle. If I open a device and obtain a device handle, do I need to close the handle somehow? If so, how to close it? If I open the same device twice, what is going to happen?</DIV>
<DIV class=plainMail>&nbsp;</DIV>
<DIV class=plainMail>Thank you very much.</DIV>
<DIV class=plainMail>&nbsp;</DIV>
<DIV class=plainMail>Emma</DIV></BLOCKQUOTE></td></tr></table><br>