summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CSharp/Ivy/IvyPPC/IvyClient.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs
index 4e65df2..dd03c8a 100644
--- a/CSharp/Ivy/IvyPPC/IvyClient.cs
+++ b/CSharp/Ivy/IvyPPC/IvyClient.cs
@@ -61,7 +61,7 @@ namespace IvyBus
}
}
- public String RemoteAddress
+ public IPAddress RemoteAddress
{
get
{
@@ -91,7 +91,7 @@ namespace IvyBus
private volatile Thread pingerThread;
private int remotePort;
- private string remoteHost;
+ private IPAddress remoteHost;
// protected variables
internal String appName;
@@ -105,10 +105,10 @@ namespace IvyBus
this.bus = bus;
this.socket = socket;
- //TODO remove ALL reverse DNS search !!!!
- IPHostEntry hostInfo = Dns.GetHostEntry(((IPEndPoint)socket.RemoteEndPoint).Address);
- remoteHost = hostInfo.HostName;
- remotePort = ((IPEndPoint)socket.RemoteEndPoint).Port;
+ IPEndPoint endpoint = (IPEndPoint)socket.RemoteEndPoint;
+
+ remoteHost = endpoint.Address;
+ remotePort = endpoint.Port;
#if (!PocketPC )
doping = Properties.Settings.Default.IvyPing;