netTcp

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTcpConnectTimeout = 10 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type TcpConnect

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

func NewTcpConnect

func NewTcpConnect(localHost string, localPort int, remoteHost string, remotePort int) (*TcpConnect, error)

func NewTcpConnectTimeout

func NewTcpConnectTimeout(localHost string, localPort int, remoteHost string, remotePort int, timeout time.Duration) (*TcpConnect, error)

func (*TcpConnect) Close

func (self *TcpConnect) Close() error

func (*TcpConnect) Read

func (self *TcpConnect) Read(buf []byte) (int, error)

func (*TcpConnect) SetReceiveTimeout

func (self *TcpConnect) SetReceiveTimeout(timeLen time.Duration)

func (*TcpConnect) Write

func (self *TcpConnect) Write(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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