Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NmProxyServer - proxy server for global access NmProxyServer = &ProxyServer{} )
Functions ¶
This section is empty.
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)
func (*ProxyServer) Listen ¶
func (p *ProxyServer) Listen(ctx context.Context)
Proxy.Listen - begins listening for packets
Click to show internal directories.
Click to hide internal directories.