ws

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ws

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

Ws is a base Ws struct

func NewWs

func NewWs(s string, d netproxy.Dialer) (*Ws, error)

NewWs returns a Ws infra.

func (*Ws) Dial

func (s *Ws) Dial(network, addr string) (c netproxy.Conn, err error)

func (*Ws) DialTcp

func (s *Ws) DialTcp(addr string) (netproxy.Conn, error)

DialTcp connects to the address addr on the network net via the infra.

func (*Ws) DialUdp

func (s *Ws) DialUdp(addr string) (netproxy.PacketConn, error)

Jump to

Keyboard shortcuts

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