Class: Pcap::Packet
- Inherits:
-
Object
- Object
- Pcap::Packet
- Defined in:
- lib/pcap/packet.rb,
ext/pcap/packet.c
Direct Known Subclasses
Class Method Summary collapse
- ._load ⇒ Object
-
._load_from ⇒ Object
marshal backward compatibility.
Instance Method Summary collapse
- #=~ ⇒ Object
- #_dump ⇒ Object
- #_dump_to ⇒ Object
- #caplen ⇒ Object
- #datalink ⇒ Object
- #inspect ⇒ Object
- #ip? ⇒ Boolean
- #length ⇒ Object
- #raw_data ⇒ Object
- #size ⇒ Object
- #tcp? ⇒ Boolean
- #time ⇒ Object
- #time_i ⇒ Object
- #time_i= ⇒ Object
- #to_s ⇒ Object
- #udata ⇒ Object
- #udata= ⇒ Object
- #udp? ⇒ Boolean
Class Method Details
._load ⇒ Object
138 139 140 |
# File 'ext/pcap/packet.c', line 138
static VALUE
packet_load(class, str)
VALUE class;
|
._load_from ⇒ Object
marshal backward compatibility
138 139 140 |
# File 'ext/pcap/packet.c', line 138
static VALUE
packet_load(class, str)
VALUE class;
|
Instance Method Details
#=~ ⇒ Object
259 260 261 |
# File 'ext/pcap/packet.c', line 259 static VALUE packet_match(self, expr) VALUE self; |
#_dump ⇒ Object
194 195 196 |
# File 'ext/pcap/packet.c', line 194 static VALUE packet_dump(self, limit) VALUE self; |
#_dump_to ⇒ Object
194 195 196 |
# File 'ext/pcap/packet.c', line 194 static VALUE packet_dump(self, limit) VALUE self; |
#caplen ⇒ Object
#datalink ⇒ Object
#inspect ⇒ Object
7 8 9 |
# File 'lib/pcap/packet.rb', line 7 def inspect "#<#{self.class}: #{self}>" end |
#ip? ⇒ Boolean
#length ⇒ Object
#raw_data ⇒ Object
#size ⇒ Object
#tcp? ⇒ Boolean
#time ⇒ Object
#time_i ⇒ Object
#time_i= ⇒ Object
242 243 244 |
# File 'ext/pcap/packet.c', line 242 static VALUE packet_set_time_i(self, val) VALUE self; |
#to_s ⇒ Object
3 4 5 |
# File 'lib/pcap/packet.rb', line 3 def to_s 'Some packet' end |
#udata ⇒ Object
#udata= ⇒ Object
227 228 229 |
# File 'ext/pcap/packet.c', line 227 static VALUE packet_set_udata(self, val) VALUE self; |