Module: Jruby::Pcap
- Defined in:
- lib/pcap.rb,
lib/jruby-pcap/frame.rb,
lib/jruby-pcap/packet.rb,
lib/jruby-pcap/version.rb,
lib/jruby-pcap/file_handle.rb,
lib/jruby-pcap/live_handle.rb
Defined Under Namespace
Classes: FileHandle, Frame, LiveHandle, Packet
Constant Summary
collapse
- VERSION =
"0.1.2"
Class Method Summary
collapse
Class Method Details
.devs ⇒ Object
33
34
35
|
# File 'lib/pcap.rb', line 33
def self.devs
Pcaps.findAllDevs
end
|
.live(name) ⇒ Object
28
29
30
31
|
# File 'lib/pcap.rb', line 28
def self.live(name)
interface = Pcaps.get_dev_by_name(name)
LiveHandle.new(interface)
end
|
.open(file) ⇒ Object
24
25
26
|
# File 'lib/pcap.rb', line 24
def self.open(file)
FileHandle.new(Pcaps.openOffline(file))
end
|