class Pcap

Defined in:

pcap.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def applyfilter(handle, bpfprogram, str, optimize, netmask) #

[View source]
def check_permission? #

[View source]
def close(handle) #

[View source]
def compile(handle, bpfprogram, str, optimize, netmask) #

[View source]
def create(pointer, iface) #

[View source]
def file(file : LibPcap::PcapT) #

[View source]
def freecode(bpfprogram) #

[View source]
def geterr(handle) #

[View source]
def lookupdev(dev : String) #

[View source]
def lookupnet(dev : String, netp, maskp, errbuf) #

[View source]
def loop(handle, count, callback, user) #

[View source]
def next(handle, header) #

[View source]
def open_live(dev : String, snaplen : Int32, promisc : Int32, timeout_ms : Int32) #

[View source]
def open_offline(file : LibPcap::File, numchars) #

[View source]
def set_promisc(handle, flag) #

[View source]
def setfilter(handle, bpfprogram) #

[View source]
def snaplen(handle, length) #

[View source]