summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC/IvyClient.cs
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:58:37 +0000
committerfcolin2007-02-01 09:58:37 +0000
commite9b1e61a4598cc940552f0f5fbbc0b3ab658e056 (patch)
tree6a58ae13bd84b05a32fdc17056055074e2a1793a /CSharp/Ivy/IvyPPC/IvyClient.cs
parentdc780c0a1cf36460ba774184c8e9fc75e4a1d38b (diff)
downloadivy-csharp-e9b1e61a4598cc940552f0f5fbbc0b3ab658e056.zip
ivy-csharp-e9b1e61a4598cc940552f0f5fbbc0b3ab658e056.tar.gz
ivy-csharp-e9b1e61a4598cc940552f0f5fbbc0b3ab658e056.tar.bz2
ivy-csharp-e9b1e61a4598cc940552f0f5fbbc0b3ab658e056.tar.xz
Utilisateur : Fcolin Date : 7/02/06 Heure : 10:50 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 38)
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs')
-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;