socketx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProxyDialTimeout func(network, address string, timeout time.Duration) (net.Conn, error)

Functions

This section is empty.

Types

type Socket

type Socket struct {
	Conn    net.Conn
	Count   int
	Timeout time.Duration
}

func NewSocket

func NewSocket(network, target string, delay int) (*Socket, error)

func (*Socket) Close

func (s *Socket) Close()

func (*Socket) QuickRequest

func (s *Socket) QuickRequest(data []byte, max int) ([]byte, error)

func (*Socket) Read

func (s *Socket) Read(timeout int) ([]byte, error)

func (*Socket) Request

func (s *Socket) Request(data []byte, max int) ([]byte, error)

Jump to

Keyboard shortcuts

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