Documentation
¶
Index ¶
- func DialTcpByHttpProxy(proxyHost string, dstAddr string, auth *ProxyAuth) (c net.Conn, err error)
- func DialTcpByNTLMHttpProxy(proxyHost string, dstAddr string, auth *ProxyAuth) (c net.Conn, err error)
- func DialTcpByProxy(proxyStr string, addr string) (c net.Conn, err error)
- func DialTcpBySocks5Proxy(proxyHost string, dstAddr string, auth *ProxyAuth) (c net.Conn, err error)
- type ProxyAuth
- type SharedConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialTcpByHttpProxy ¶
func DialTcpByNTLMHttpProxy ¶
Types ¶
type SharedConn ¶
type SharedConn struct { // contains filtered or unexported fields }
func NewSharedConn ¶
func NewSharedConn(conn net.Conn) (*SharedConn, io.Reader)
the bytes you read in io.Reader, will be reserved in SharedConn
func NewSharedConnSize ¶
func (*SharedConn) Read ¶
func (sc *SharedConn) Read(p []byte) (n int, err error)
Not thread safety.
func (*SharedConn) ResetBuf ¶
func (sc *SharedConn) ResetBuf(buffer []byte) (err error)
Click to show internal directories.
Click to hide internal directories.