本文整理匯總了Java中org.jnetpcap.PcapExtensionNotAvailableException類的典型用法代碼示例。如果您正苦於以下問題:Java PcapExtensionNotAvailableException類的具體用法?Java PcapExtensionNotAvailableException怎麽用?Java PcapExtensionNotAvailableException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PcapExtensionNotAvailableException類屬於org.jnetpcap包,在下文中一共展示了PcapExtensionNotAvailableException類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: sendQueueDestroy
import org.jnetpcap.PcapExtensionNotAvailableException; //導入依賴的package包/類
/**
* Destroy a send queue. Deletes a send queue and frees all the memory
* associated with it.
*
* @param queue
* the queue to free up
*/
public static void sendQueueDestroy(final WinPcapSendQueue queue) {
if (isSupported() == false) {
throw new PcapExtensionNotAvailableException();
}
// Memory is recaptured during GC
}
示例2: sendQueueAlloc
import org.jnetpcap.PcapExtensionNotAvailableException; //導入依賴的package包/類
/**
* Allocate a send queue. This method allocats a send queue, i.e. a buffer
* containing a set of raw packets that will be transmittted on the network
* with {@link #sendQueueTransmit} method.
*
* @param size
* size of the sendqueue to allocate
* @return allocated sendqueue
* @see #sendQueueTransmit(WinPcapSendQueue, int)
*/
public static WinPcapSendQueue sendQueueAlloc(final int size) {
if (isSupported() == false) {
throw new PcapExtensionNotAvailableException();
}
return new WinPcapSendQueue(size);
}