tcp

package
v0.0.0-...-0cf7efa Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTcpOption = port.ScannerOption{
	Rate:    1000,
	Timeout: 800,
}

Functions

This section is empty.

Types

type TcpScanner

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

func NewTcpScanner

func NewTcpScanner(retChan chan port.OpenIpPort, option port.ScannerOption) (ts *TcpScanner, err error)

NewTcpScanner Tcp扫描器

func (*TcpScanner) Close

func (ts *TcpScanner) Close()

Close chan

func (*TcpScanner) Scan

func (ts *TcpScanner) Scan(ip net.IP, dst uint16, ipOption port.IpOption) error

Scan 对指定IP和dis port进行扫描

func (*TcpScanner) Wait

func (ts *TcpScanner) Wait()

func (*TcpScanner) WaitLimiter

func (ts *TcpScanner) WaitLimiter() error

WaitLimiter Waiting for the speed limit

Jump to

Keyboard shortcuts

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