1
czw
2025-07-03 9dcc6fbbb575b1d365208defe34290640d4be887
2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/AutoThread.cs
@@ -2027,24 +2027,23 @@
    }
    public class HttpServer
    {
        System.Net.HttpListener HttpSvcHost = null;
        private readonly string _listenerPrefix = "";
        public static string _listenerPrefix = "";
        public HttpServer(string ip)
        {
            _listenerPrefix = ip;
            _listenerPrefix = $"http://{ip}:8808/";
        }
        public void HttpServerRun()
        {
            HttpSvcHost = new System.Net.HttpListener();
            HttpSvcHost.AuthenticationSchemes = System.Net.AuthenticationSchemes.Anonymous;
            HttpSvcHost.Prefixes.Add($"http://{_listenerPrefix}:8808/");
            HttpSvcHost.Prefixes.Add(_listenerPrefix);
            HttpSvcHost.Start();
            HttpSvcHost.BeginGetContext(HttpSvcListenerCallback, null);
        }
@@ -2327,8 +2326,6 @@
        }
    }
    internal class WebSocketClient
    {