Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NmProxyServer - proxy server for global access NmProxyServer = &ProxyServer{} )
Functions ¶
func ProcessIncomingPacket ¶ added in v0.19.0
ProcessIncomingPacket - process the incoming packet to the proxy
Types ¶
type ProxyServer ¶
ProxyServer - struct for proxy server
func (*ProxyServer) Close ¶
func (p *ProxyServer) Close()
ProxyServer.Close - closes the proxy server
func (*ProxyServer) CreateProxyServer ¶
func (p *ProxyServer) CreateProxyServer(port, bodySize int, addr string) (err error)
ProxyServer.CreateProxyServer - creats a proxy listener port - port for proxy to listen on localhost bodySize - leave 0 to use default addr - the address for proxy to listen on
func (*ProxyServer) KeepAlive ¶
func (p *ProxyServer) KeepAlive(ip string, port int)
Click to show internal directories.
Click to hide internal directories.