ssdp

package
v0.0.0-...-236f0b2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func NewListener

func NewListener(ifi net.Interface, network string) (Listener, error)

func (Listener) Close

func (l Listener) Close() error

func (Listener) Listen

func (l Listener) Listen(messages chan<- Message, errs chan<- error, wg *sync.WaitGroup)

type Message

type Message struct {
	Network  string
	IfName   string
	SourceIP net.Addr
	Data     []byte
}

type Relay

type Relay struct {
	// contains filtered or unexported fields
}

func NewRelay

func NewRelay(in []net.Interface, out []net.Interface) (Relay, error)

func (Relay) Serve

func (r Relay) Serve() error

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

func NewSender

func NewSender(ifi net.Interface, network string) (Sender, error)

func (Sender) Send

func (s Sender) Send(data []byte, srcIP net.IP, srcPort int) (int, error)

Jump to

Keyboard shortcuts

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