Documentation
¶
Index ¶
Constants ¶
View Source
const ( ResponseError = "0" ResponseOK = "1" ResponseReset = "2" ResponseRefused = "3" ResponseUnknownHost = "4" ResponseTimeout = "5" )
Variables ¶
View Source
var Server net.Listener
Functions ¶
Types ¶
type Client ¶
type Client struct {
Client net.Conn
Upstream net.Conn
UpstreamAddr *net.TCPAddr
Username string
BindAddr *net.TCPAddr
TLS bool
}
func MakeClient ¶
func (*Client) ConnectUpstream ¶
type HandshakeMeta ¶
type KiwiProxyConnection ¶
type KiwiProxyConnection struct {
Username string
ProxyInterface string
DestHost string
DestPort int
DestTLS bool
State KiwiProxyState
Conn *net.Conn
}
func MakeKiwiProxyConnection ¶
func MakeKiwiProxyConnection() *KiwiProxyConnection
func (*KiwiProxyConnection) Close ¶
func (c *KiwiProxyConnection) Close() error
func (*KiwiProxyConnection) Dial ¶
func (c *KiwiProxyConnection) Dial(proxyServerAddr string) error
type KiwiProxyState ¶
type KiwiProxyState int
const KiwiProxyStateClosed KiwiProxyState = 0
const KiwiProxyStateConnected KiwiProxyState = 3
const KiwiProxyStateConnecting KiwiProxyState = 1
const KiwiProxyStateHandshaking KiwiProxyState = 2
Click to show internal directories.
Click to hide internal directories.