network

package
v7.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalNetworkScanner

type LocalNetworkScanner struct{}

func (*LocalNetworkScanner) ContainsIP

func (lns *LocalNetworkScanner) ContainsIP(ip string) bool

checks whether the local network scanner contains the given IP

type NetScanner

type NetScanner interface {
	ContainsIP(ip string) bool
	// contains filtered or unexported methods
}

func MakeLocalNetworkScanner

func MakeLocalNetworkScanner() NetScanner

func MakeTestNetworkScanner

func MakeTestNetworkScanner(networks []*net.IPNet) NetScanner

Test network scanner

type TCPServer

type TCPServer struct {
	Address string
	// contains filtered or unexported fields
}

func NewTCPServer

func NewTCPServer(onMessage func(c net.Conn)) *TCPServer

func NewTCPServerAllPorts

func NewTCPServerAllPorts(onMessage func(c net.Conn)) *TCPServer

func (*TCPServer) Run

func (s *TCPServer) Run(done chan struct{})

type TestNetworkScanner

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

func (*TestNetworkScanner) ContainsIP

func (tns *TestNetworkScanner) ContainsIP(ip string) bool

checks whether the local network scanner contains the given IP

type UDPServer

type UDPServer struct {
	Address string
	// contains filtered or unexported fields
}

func NewUDPServer

func NewUDPServer(onMessage func(b []byte, n int) []byte) *UDPServer

func (*UDPServer) Run

func (s *UDPServer) Run(done chan struct{}, payloadSize int)

Jump to

Keyboard shortcuts

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