class Pcap::Capture
- Pcap::Capture
- Reference
- Object
Defined in:
pcap/capture.crConstant Summary
-
DEFAULT_PROMISC =
1
-
DEFAULT_SNAPLEN =
1500
-
DEFAULT_TIMEOUT_MS =
1000
Constructors
Class Method Summary
- .open_live(device : String, snaplen : Int32 = DEFAULT_SNAPLEN, promisc : Int32 = DEFAULT_PROMISC, timeout_ms : Int32 = DEFAULT_TIMEOUT_MS)
- .open_offline(file : String)
Instance Method Summary
- #callback
- #callback=(callback : Pcap::Packet -> _)
- #callback? : Pcap::Packet -> Nil
- #close
- #loop(count : Int32 = -1, &callback : Pcap::Packet -> )
- #set_promisc(flag : Bool)
- #setfilter(filter : String, optimize : Int32 = 1)
Constructor Detail
Class Method Detail
def self.open_live(device : String, snaplen : Int32 = DEFAULT_SNAPLEN, promisc : Int32 = DEFAULT_PROMISC, timeout_ms : Int32 = DEFAULT_TIMEOUT_MS)
#