summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC/IvyClient.cs
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:57:53 +0000
committerfcolin2007-02-01 09:57:53 +0000
commite3dd0c15c2f7758bd33119c057ac58ed0ab783d2 (patch)
tree9ea55abde27b64229224ce8d2e85bda0ae3e4f6e /CSharp/Ivy/IvyPPC/IvyClient.cs
parent4223ac996d571d4e92dbcad0e238b91608d1ba81 (diff)
downloadivy-csharp-e3dd0c15c2f7758bd33119c057ac58ed0ab783d2.zip
ivy-csharp-e3dd0c15c2f7758bd33119c057ac58ed0ab783d2.tar.gz
ivy-csharp-e3dd0c15c2f7758bd33119c057ac58ed0ab783d2.tar.bz2
ivy-csharp-e3dd0c15c2f7758bd33119c057ac58ed0ab783d2.tar.xz
Utilisateur : Fcolin Date : 5/12/03 Heure : 9:29 Archivé dans $/EScribe/Ivy Commentaire: (vss 16)
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyClient.cs9
1 files 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;
}
}