// Closes the underling file. func (d *Dumper) Close() (err error) { _, err = C.pcap_dump_close(d.cptr) if err != nil { return err } return }
func (p *Pcap) PcapDumpClose(dumper *PcapDumper) { C.pcap_dump_close(dumper.cptr) }
func (d *Dumper) Close() { C.pcap_dump_close(d.dumper) }