Class: Pcap::Capture
Class Method Summary collapse
Instance Method Summary collapse
- #breakloop ⇒ Object
- #close ⇒ Object
- #closed? ⇒ Boolean
- #datalink ⇒ Object
-
#direction ⇒ Object
configure capture direction: IN/OUT packets.
- #dispatch ⇒ Object
- #each ⇒ Object
- #each_packet ⇒ Object
- #fh ⇒ Object
- #inject ⇒ Object
- #loop ⇒ Object
- #setfilter ⇒ Object
- #snaplen ⇒ Object
- #snapshot ⇒ Object
- #stats ⇒ Object
Class Method Details
.open_dead ⇒ Object
250 251 252 |
# File 'ext/pcap/Pcap.c', line 250 static VALUE capture_open_dead(argc, argv, class) int argc; |
.open_live ⇒ Object
156 157 158 |
# File 'ext/pcap/Pcap.c', line 156 static VALUE capture_open_live(argc, argv, class) int argc; |
.open_offline ⇒ Object
222 223 224 |
# File 'ext/pcap/Pcap.c', line 222 static VALUE capture_open_offline(class, fname) VALUE class; |
Instance Method Details
#breakloop ⇒ Object
458 459 460 |
# File 'ext/pcap/Pcap.c', line 458 static VALUE capture_breakloop(self) VALUE self; |
#close ⇒ Object
296 297 298 |
# File 'ext/pcap/Pcap.c', line 296 static VALUE capture_close(self) VALUE self; |
#closed? ⇒ Boolean
311 312 313 |
# File 'ext/pcap/Pcap.c', line 311 static VALUE is_capture_closed(self) VALUE self; |
#datalink ⇒ Object
572 573 574 |
# File 'ext/pcap/Pcap.c', line 572 static VALUE capture_datalink(self) VALUE self; |
#direction ⇒ Object
configure capture direction: IN/OUT packets
646 647 648 |
# File 'ext/pcap/Pcap.c', line 646 static VALUE capture_direction(self, direction) VALUE direction; |
#dispatch ⇒ Object
404 405 406 |
# File 'ext/pcap/Pcap.c', line 404 static VALUE capture_dispatch(argc, argv, self) int argc; |
#each ⇒ Object
470 471 472 |
# File 'ext/pcap/Pcap.c', line 470 static VALUE capture_loop(argc, argv, self) int argc; |
#each_packet ⇒ Object
470 471 472 |
# File 'ext/pcap/Pcap.c', line 470 static VALUE capture_loop(argc, argv, self) int argc; |
#fh ⇒ Object
441 442 443 |
# File 'ext/pcap/Pcap.c', line 441 static VALUE capture_fh(argc, argv, self) int argc; |
#inject ⇒ Object
618 619 620 |
# File 'ext/pcap/Pcap.c', line 618 static VALUE capture_inject(self, v_buf) VALUE self; |
#loop ⇒ Object
470 471 472 |
# File 'ext/pcap/Pcap.c', line 470 static VALUE capture_loop(argc, argv, self) int argc; |
#setfilter ⇒ Object
531 532 533 |
# File 'ext/pcap/Pcap.c', line 531 static VALUE capture_setfilter(argc, argv, self) int argc; |
#snaplen ⇒ Object
584 585 586 |
# File 'ext/pcap/Pcap.c', line 584 static VALUE capture_snapshot(self) VALUE self; |
#snapshot ⇒ Object
584 585 586 |
# File 'ext/pcap/Pcap.c', line 584 static VALUE capture_snapshot(self) VALUE self; |
#stats ⇒ Object
596 597 598 |
# File 'ext/pcap/Pcap.c', line 596 static VALUE capture_stats(self) VALUE self; |