Class: Pcap::Capture

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
ext/pcap/Pcap.c

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.open_deadObject



250
251
252
# File 'ext/pcap/Pcap.c', line 250

static VALUE
capture_open_dead(argc, argv, class)
int argc;

.open_liveObject



156
157
158
# File 'ext/pcap/Pcap.c', line 156

static VALUE
capture_open_live(argc, argv, class)
int argc;

.open_offlineObject



222
223
224
# File 'ext/pcap/Pcap.c', line 222

static VALUE
capture_open_offline(class, fname)
VALUE class;

Instance Method Details

#breakloopObject



458
459
460
# File 'ext/pcap/Pcap.c', line 458

static VALUE
capture_breakloop(self)
VALUE self;

#closeObject



296
297
298
# File 'ext/pcap/Pcap.c', line 296

static VALUE
capture_close(self)
VALUE self;

#closed?Boolean

Returns:

  • (Boolean)


311
312
313
# File 'ext/pcap/Pcap.c', line 311

static VALUE
is_capture_closed(self)
VALUE self;


572
573
574
# File 'ext/pcap/Pcap.c', line 572

static VALUE
capture_datalink(self)
VALUE self;

#directionObject

configure capture direction: IN/OUT packets



646
647
648
# File 'ext/pcap/Pcap.c', line 646

static VALUE
capture_direction(self, direction)
VALUE direction;

#dispatchObject



404
405
406
# File 'ext/pcap/Pcap.c', line 404

static VALUE
capture_dispatch(argc, argv, self)
int argc;

#eachObject



470
471
472
# File 'ext/pcap/Pcap.c', line 470

static VALUE
capture_loop(argc, argv, self)
int argc;

#each_packetObject



470
471
472
# File 'ext/pcap/Pcap.c', line 470

static VALUE
capture_loop(argc, argv, self)
int argc;

#fhObject



441
442
443
# File 'ext/pcap/Pcap.c', line 441

static VALUE
capture_fh(argc, argv, self)
int argc;

#injectObject



618
619
620
# File 'ext/pcap/Pcap.c', line 618

static VALUE
capture_inject(self, v_buf)
VALUE self;

#loopObject



470
471
472
# File 'ext/pcap/Pcap.c', line 470

static VALUE
capture_loop(argc, argv, self)
int argc;

#setfilterObject



531
532
533
# File 'ext/pcap/Pcap.c', line 531

static VALUE
capture_setfilter(argc, argv, self)
int argc;

#snaplenObject



584
585
586
# File 'ext/pcap/Pcap.c', line 584

static VALUE
capture_snapshot(self)
VALUE self;

#snapshotObject



584
585
586
# File 'ext/pcap/Pcap.c', line 584

static VALUE
capture_snapshot(self)
VALUE self;

#statsObject



596
597
598
# File 'ext/pcap/Pcap.c', line 596

static VALUE
capture_stats(self)
VALUE self;