Skip to content

Commit

Permalink
1.0.0.44 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
x-nas committed Nov 17, 2024
1 parent cde9c68 commit ce9082a
Show file tree
Hide file tree
Showing 7 changed files with 286 additions and 724 deletions.
6 changes: 3 additions & 3 deletions WPELibrary/Lib/MultiLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ public static class MultiLanguage
public static string[] MutiLan_77 = { "序号\t类别\t套接字\t源地址\t目的地址\t长度\t数据\t", "ID\tCategory\tSocket\tFrom Address\tTo Address\tLength\tData\t" };
public static string[] MutiLan_78 = { "记录时间\t模块\t日志内容\t", "Log Time\tModule Name\tLog content\t" };
public static string[] MutiLan_79 = { "提示", "Prompt" };
public static string[] MutiLan_80 = { "CPU: {0}%", "CPU: {0}%" };
public static string[] MutiLan_81 = { "内存: {0}%", "Memory: {0}%" };
//public static string[] MutiLan_80 = { "CPU: {0}%", "CPU: {0}%" };
//public static string[] MutiLan_81 = { "内存: {0}%", "Memory: {0}%" };
public static string[] MutiLan_82 = { "递进位置超出封包长度", "Progressive position exceeds packet length" };
public static string[] MutiLan_83 = { "不是合法的十六进制数据", "Not legal hexadecimal data" };
public static string[] MutiLan_84 = { "请选择需要发送的封包", "Please select the packets to sent" };
public static string[] MutiLan_85 = { "十六进制", "Hexadecimal" };
public static string[] MutiLan_86 = { "二进制", "Binary" };
public static string[] MutiLan_87 = { "十进制", "Decimal" };
public static string[] MutiLan_88 = { "正在读取数据 . . .", "Loading . . ." };
//public static string[] MutiLan_88 = { "正在读取数据 . . .", "Loading . . ." };

#endregion

Expand Down
4 changes: 1 addition & 3 deletions WPELibrary/Lib/Socket_Cache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ public static class Socket_Cache
public static long TotalPackets = 0;
public static long Total_SendBytes = 0;
public static long Total_RecvBytes = 0;
public static bool SpeedMode;
public static bool MonitorMEM;
public static decimal MonitorMEM_Value;
public static bool SpeedMode;
public static byte[] bByteBuff = new byte[0];
public static bool Support_WS1, Support_WS2;
public static bool HookSend, HookSendTo, HookRecv, HookRecvFrom, HookWSASend, HookWSASendTo, HookWSARecv, HookWSARecvFrom;
Expand Down
22 changes: 4 additions & 18 deletions WPELibrary/Lib/Socket_Operation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2827,25 +2827,15 @@ public static bool SaveSystemConfig()
xeConfig.AppendChild(xeSystemConfig);

string sSpeedMode = Socket_Cache.SpeedMode.ToString();
string sFilterList_Execute = Socket_Cache.FilterList.FilterList_Execute.ToString();
string sMonitorMEM = Socket_Cache.MonitorMEM.ToString();
string sMonitorMEM_Value = Socket_Cache.MonitorMEM_Value.ToString();
string sFilterList_Execute = Socket_Cache.FilterList.FilterList_Execute.ToString();

XmlElement xeSpeedMode = doc.CreateElement("SpeedMode");
xeSpeedMode.InnerText = sSpeedMode;
xeSystemConfig.AppendChild(xeSpeedMode);

XmlElement xeFilterList_Execute = doc.CreateElement("FilterList_Execute");
xeFilterList_Execute.InnerText = sFilterList_Execute;
xeSystemConfig.AppendChild(xeFilterList_Execute);

XmlElement xeMonitorMEM = doc.CreateElement("MonitorMEM");
xeMonitorMEM.InnerText = sMonitorMEM;
xeSystemConfig.AppendChild(xeMonitorMEM);

XmlElement xeMonitorMEM_Value = doc.CreateElement("MonitorMEM_Value");
xeMonitorMEM_Value.InnerText = sMonitorMEM_Value;
xeSystemConfig.AppendChild(xeMonitorMEM_Value);
xeSystemConfig.AppendChild(xeFilterList_Execute);

#endregion

Expand Down Expand Up @@ -2967,14 +2957,10 @@ public static bool LoadSystemConfig()
XmlNode xnSystemConfig = xnConfig.SelectSingleNode("SystemConfig");

string sSpeedMode = xnSystemConfig.SelectSingleNode("SpeedMode").InnerText;
string sFilterList_Execute = xnSystemConfig.SelectSingleNode("FilterList_Execute").InnerText;
string sMonitorMEM = xnSystemConfig.SelectSingleNode("MonitorMEM").InnerText;
string sMonitorMEM_Value = xnSystemConfig.SelectSingleNode("MonitorMEM_Value").InnerText;
string sFilterList_Execute = xnSystemConfig.SelectSingleNode("FilterList_Execute").InnerText;

Socket_Cache.SpeedMode = bool.Parse(sSpeedMode);
Socket_Cache.FilterList.FilterList_Execute = GetFilterListExecute_ByString(sFilterList_Execute);
Socket_Cache.MonitorMEM = bool.Parse(sMonitorMEM);
Socket_Cache.MonitorMEM_Value = decimal.Parse(sMonitorMEM_Value);
Socket_Cache.FilterList.FilterList_Execute = GetFilterListExecute_ByString(sFilterList_Execute);

#endregion
}
Expand Down
95 changes: 5 additions & 90 deletions WPELibrary/Socket_Form.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ce9082a

Please sign in to comment.