sniffer

package
v0.0.0-...-dd0bef4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

type Packet struct {
	Data        []byte
	CaptureInfo gopacket.CaptureInfo
}

type Sniffer

type Sniffer struct {
	XboxAdapter *pcap.Handle
	Packets     chan Packet
	// contains filtered or unexported fields
}

Sniffer is a container of all the sniffer-related data

func Start

func Start() (*Sniffer, error)

Start attempts to start the sniffer and return a pointer to the struct

func (*Sniffer) Stop

func (s *Sniffer) Stop()

Stop attempts to stop the sniffer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL