From e3dd0c15c2f7758bd33119c057ac58ed0ab783d2 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:57:53 +0000 Subject: Utilisateur : Fcolin Date : 5/12/03 Heure : 9:29 Archivé dans $/EScribe/Ivy Commentaire: (vss 16) --- CSharp/Ivy/IvyPPC/IvyClient.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs index 360c9b1..f3528dc 100644 --- a/CSharp/Ivy/IvyPPC/IvyClient.cs +++ b/CSharp/Ivy/IvyPPC/IvyClient.cs @@ -87,19 +87,20 @@ namespace IvyBus } } - private String RemoteAddress + public String RemoteAddress { get { - return socket.RemoteAddress.ToString(); + IPHostEntry hostInfo = Dns.GetHostByAddress(socket.RemoteAddress); + return hostInfo.HostName; } } - private String RemotePort + public int RemotePort { get { - return socket.RemotePort.ToString(); + return socket.RemotePort; } } -- cgit v1.1