wrap

package module
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnWithAddr

func ConnWithAddr(conn net.Conn, addr net.Addr) net.Conn

attach ip info to net.Conn produced by websocket.NetConn

func Hijack

func Hijack(w http.ResponseWriter) (net.Conn, error)

func HijackConn

func HijackConn(conn net.Conn, buf io.Reader, err error) (net.Conn, error)

func NetConn

func NetConn(wsconn *websocket.Conn) net.Conn

func NewAddr

func NewAddr(network, hostport string) net.Addr

func Wrconn

func Wrconn(w http.ResponseWriter, r *http.Request) (net.Conn, error)

Types

type Conn

type Conn struct {
	net.Conn
	Buf io.Reader
}

func (*Conn) Read

func (c *Conn) Read(b []byte) (int, error)

Jump to

Keyboard shortcuts

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