From e9b1e61a4598cc940552f0f5fbbc0b3ab658e056 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:58:37 +0000 Subject: Utilisateur : Fcolin Date : 7/02/06 Heure : 10:50 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 38) --- CSharp/Ivy/IvyPPC/IvyClient.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs') 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; -- cgit v1.1