diff options
author | fcolin | 2007-02-01 09:47:11 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:47:11 +0000 |
commit | 0fdf81eb300d1625a133ddbc08ce19e194ae8617 (patch) | |
tree | e12010543f329844473d16d413203755f6d5aa3c | |
parent | 3a4ae5fd8e71f5d21bf897b589db3bc1963ac174 (diff) | |
download | ivy-csharp-0fdf81eb300d1625a133ddbc08ce19e194ae8617.zip ivy-csharp-0fdf81eb300d1625a133ddbc08ce19e194ae8617.tar.gz ivy-csharp-0fdf81eb300d1625a133ddbc08ce19e194ae8617.tar.bz2 ivy-csharp-0fdf81eb300d1625a133ddbc08ce19e194ae8617.tar.xz |
Utilisateur : Fcolin Date : 7/02/06 Heure : 10:50 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 38)
-rw-r--r-- | CSharp/Ivy/Ivy/IvyClient.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/CSharp/Ivy/Ivy/IvyClient.cs b/CSharp/Ivy/Ivy/IvyClient.cs index 4e65df2..dd03c8a 100644 --- a/CSharp/Ivy/Ivy/IvyClient.cs +++ b/CSharp/Ivy/Ivy/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;
|