Class: Jruby::Pcap::Frame

Inherits:
Object
  • Object
show all
Defined in:
lib/jruby-pcap/frame.rb

Instance Method Summary collapse

Constructor Details

#initialize(handle, frame) ⇒ Frame

Returns a new instance of Frame.



4
5
6
7
# File 'lib/jruby-pcap/frame.rb', line 4

def initialize(handle, frame)
  @handle = handle
  @frame  = frame
end

Instance Method Details

#is_a?(clazz) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/jruby-pcap/frame.rb', line 17

def is_a?(clazz)

end

#src_addrObject



9
10
11
# File 'lib/jruby-pcap/frame.rb', line 9

def src_addr
  @frame.header.src_addr.to_s.gsub("/","")
end

#src_hostObject



13
14
15
# File 'lib/jruby-pcap/frame.rb', line 13

def src_host
  @frame.header.src_addr.host_name
end