1
public static void PullData(Hashtable source)
{
IPGlobalProperties ipProperties = IPGlobalProperties.GetIPGlobalProperties();
//IPEndPoint[] endPoints = ipProperties.GetActiveTcpListeners();
TcpConnectionInformation[] tcpConnections = ipProperties.GetActiveTcpConnections();
foreach (TcpConnectionInformation info in tcpConnections)
{
if (!(info.RemoteEndPoint.Address.ToString() == "192" || info.RemoteEndPoint.Address.ToString() == "127"))
{
source.Add(info.RemoteEndPoint.Address.ToString(), new IPInstance(
new string[info.LocalEndPoint.Port.ToString(), info.RemoteEndPoint.Port.ToString()],
info.RemoteEndPoint.Address.ToString(),
Dns.GetHostEntry(info.RemoteEndPoint.Address.ToString())
));
}
}
}
我不斷收到錯誤1無法隱式轉換類型「字符串」到「廉政」這個語法有什麼問題?