tcp

package
v0.0.0-...-8ec60ba Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPPortOptions

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

TCPPortOptions ICMP Options

func (*TCPPortOptions) SetTimeout

func (options *TCPPortOptions) SetTimeout(timeout time.Duration)

SetTimeout Setter

func (*TCPPortOptions) Timeout

func (options *TCPPortOptions) Timeout() time.Duration

Timeout Getter

type TCPPortReturn

type TCPPortReturn struct {
	Success  bool          `json:"success"`
	DestAddr string        `json:"dest_address"`
	DestIp   string        `json:"dest_ip"`
	DestPort string        `json:"dest_port"`
	SrcIp    string        `json:"src_ip"`
	ConTime  time.Duration `json:"connection_time"`
}

TCPPortReturn Calculated results

func Port

func Port(destAddr string, ip string, srcAddr string, port string, timeout time.Duration) (*TCPPortReturn, error)

Port TCP Operation

Jump to

Keyboard shortcuts

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