Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Proxy ¶
type Proxy struct {
Options network.TCPOptions
*network.Server
// contains filtered or unexported fields
}
转发代理
func (*Proxy) CreateClient ¶
func (*Proxy) CreateProcess ¶
func (p *Proxy) CreateProcess(router IRouter, action ProxyAction) network.ProcessFunc
type UnixClient ¶
Unix socket 客户端.
func (*UnixClient) Close ¶
func (c *UnixClient) Close() error
func (*UnixClient) GetConn ¶
func (c *UnixClient) GetConn() *network.Conn
func (*UnixClient) GetPlan ¶
func (c *UnixClient) GetPlan() *network.DialPlan
func (*UnixClient) SetConn ¶
func (c *UnixClient) SetConn(conn *network.Conn)
type UnixServer ¶
Unix socket 服务器
func (*UnixServer) Run ¶
func (s *UnixServer) Run(events network.Events) (err error)
开始服务,接受客户端连接,并进行读写
Click to show internal directories.
Click to hide internal directories.