SVN Ignore geändert, erste Funktionierende Komunikation so das Befehle ausgeführt werden
This commit is contained in:
@@ -32,9 +32,10 @@ namespace NetMonitorClient
|
||||
String gateway = networkini.getValue(Item.Name, "Gateway");
|
||||
String dns = networkini.getValue(Item.Name, "Dns");
|
||||
String wins = networkini.getValue(Item.Name, "Wins");
|
||||
String adapter = networkini.getValue(Item.Name, "Adapter");
|
||||
|
||||
if (ip == "auto" && dns == "auto" && wins == "auto")
|
||||
this.sc.setNetworkAuto();
|
||||
this.sc.setNetworkAuto(adapter);
|
||||
else
|
||||
{
|
||||
this.sc.setNetworkIp(ip, subnet, gateway);
|
||||
|
||||
@@ -24,9 +24,14 @@ namespace NetMonitorClient
|
||||
this.rep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 34523);
|
||||
}
|
||||
|
||||
internal void setNetworkAuto()
|
||||
internal void setNetworkAuto(string networkcard)
|
||||
{
|
||||
byte[] data = Encoding.UTF8.GetBytes("NET AUTO");
|
||||
if (networkcard == null)
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("Adapter ist not Set!");
|
||||
return;
|
||||
}
|
||||
byte[] data = Encoding.UTF8.GetBytes("NET AUTO "+networkcard);
|
||||
this.client.Send(data, data.Length, this.rep);
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
Name=Home
|
||||
Ip=auto
|
||||
Dns=auto
|
||||
Wins=auto
|
||||
Wins=auto
|
||||
Adapter=LAN-Verbindung
|
||||
Reference in New Issue
Block a user