connection

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(host string, port uint) (*net.TCPConn, error)

func SendHTTPRequest

func SendHTTPRequest(conn *Connection, request string) interface{}

func SendHTTPSRequest

func SendHTTPSRequest(conn *Connection, config utls.Config) *util.TLSdata

func SrcIP

func SrcIP() string

SrcIP returns the IPv4 address for the input interface.

Types

type Connection

type Connection struct {
	Host string
	Raw  *net.TCPConn
	Err  error
}

func NewConnection

func NewConnection(host string, port uint) *Connection

Jump to

Keyboard shortcuts

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