Documentation
¶
Overview ¶
Package bufconn offers access to connections with buffer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
Conn is a connection with bufio reader.
type ConnSolver ¶
ConnSolver is the interface of Conn to solve the connection prerequisites to transfer the real data. CONNECT to proxy. Maybe BIDN, UDP.
type HTTPConn ¶ added in v0.1.7
type HTTPConn Conn
HTTPConn represents a HTTP connection.
type Socks4aConn ¶
type Socks4aConn Conn
Socks4aConn represents a socks4a connection.
func DialSocks4a ¶
DialSocks4a dials a socks4a URL with timeout.
func (*Socks4aConn) Bond ¶
func (c *Socks4aConn) Bond(m, h, p string, b []byte) (err error)
Bond bonds a socks4a connection with the server.
func (*Socks4aConn) GetConn ¶
func (c *Socks4aConn) GetConn() *Conn
GetConn returns the packed `*Conn` from a `*Socks4aConn`.
type Socks5Conn ¶
type Socks5Conn Conn
Socks5Conn represents a socks5 connection.
func DialSocks5 ¶
DialSocks5 dials a socks5 URL with timeout.
func (*Socks5Conn) Bond ¶
func (c *Socks5Conn) Bond(m, h, p string, b []byte) (err error)
Bond bonds a socks5 connection with the server.
func (*Socks5Conn) GetConn ¶
func (c *Socks5Conn) GetConn() *Conn
GetConn returns the packed `*Conn` from a `*Socks5Conn`.