alielie
2025-11-24 9211ec11c112e18cd99e77f889a01110a70031ce
Plugin.TestResult/Model/TcpServer.cs
@@ -2,6 +2,8 @@
using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Protocol;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace Plugin.TestResult_WPF.Model
@@ -13,6 +15,7 @@
            rest = 0;
            StringBuilder sb = new StringBuilder();
            int i = offset;
            List<byte> bytes = new List<byte>();
            while (i < readBuffer.Length)
            {
                byte b = readBuffer[i++];
@@ -21,8 +24,10 @@
                    break;
                }
                sb.Append((char)b);
                bytes.Add(b);
            }
            return new StringRequestInfo(DateTime.Now + "", sb.ToString(), null);
            byte[] arr = bytes.ToArray();
            return new StringRequestInfo(DateTime.Now + "", Encoding.UTF8.GetString(arr), null);//sb.ToString()
        }
    }