class Pcap::Capture
- Pcap::Capture
- Reference
- Object
Defined in:
pcap/capture.crConstant Summary
-
DEFAULT_PROMISC =
1
-
DEFAULT_SNAPLEN =
68
-
DEFAULT_TIMEOUT_MS =
1000
Constructors
Class Method Summary
Instance Method Summary
- #callback
- #callback=(callback : Pcap::Packet -> _)
- #callback? : Pcap::Packet -> Nil
- #close
- #loop(count : Int32 = -1, user : String | Nil = nil)
- #loop(callback)
- #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)
#