static void Test4() { //var proxy = new NATProxy("s3.peacemoon.cn", 3389); var proxy = new NATProxy("192.168.0.85", 3389); //proxy.Port = 89; proxy.Local = "tcp://:89"; proxy.Log = XTrace.Log; //proxy.SessionLog = XTrace.Log; proxy.Start(); while (true) { Console.Title = "会话数:{0}".F(proxy.SessionCount); Thread.Sleep(1000); } }
public void Start() { proxy.Start(); }