SVN Ignore geändert, erste Funktionierende Komunikation so das Befehle ausgeführt werden

This commit is contained in:
2010-04-28 14:34:35 +00:00
parent 96fe859f9a
commit 890cfc839a
9 changed files with 242 additions and 14 deletions
+2 -1
View File
@@ -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);
+7 -2
View File
@@ -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 -1
View File
@@ -2,4 +2,5 @@
Name=Home
Ip=auto
Dns=auto
Wins=auto
Wins=auto
Adapter=LAN-Verbindung