Class: Pcap::Packet

Inherits:
Object
  • Object
show all
Defined in:
lib/pcap_misc.rb,
ext/packet.c

Direct Known Subclasses

IPPacket

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

._loadObject



138
139
140
# File 'ext/packet.c', line 138

static VALUE
packet_load(class, str)
VALUE class;

._load_fromObject

marshal backward compatibility



138
139
140
# File 'ext/packet.c', line 138

static VALUE
packet_load(class, str)
VALUE class;

Instance Method Details

#=~Object



259
260
261
# File 'ext/packet.c', line 259

static VALUE
packet_match(self, expr)
VALUE self;

#_dumpObject



194
195
196
# File 'ext/packet.c', line 194

static VALUE
packet_dump(self, limit)
VALUE self;

#_dump_toObject



194
195
196
# File 'ext/packet.c', line 194

static VALUE
packet_dump(self, limit)
VALUE self;

#caplenObject

#inspectObject



8
9
10
# File 'lib/pcap_misc.rb', line 8

def inspect
  "#<#{self.class}: #{self}>"
end

#ip?Boolean

#lengthObject

#raw_dataObject

#sizeObject

#tcp?Boolean

#timeObject

#time_iObject

#time_i=Object



242
243
244
# File 'ext/packet.c', line 242

static VALUE
packet_set_time_i(self, val)
VALUE self;

#to_sObject



4
5
6
# File 'lib/pcap_misc.rb', line 4

def to_s
  'Some packet'
end

#udataObject

#udata=Object



227
228
229
# File 'ext/packet.c', line 227

static VALUE
packet_set_udata(self, val)
VALUE self;

#udp?Boolean