summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:46:27 +0000
committerfcolin2007-02-01 09:46:27 +0000
commit49270e1d64107e8478b8246b5d45e5d4bed759a7 (patch)
tree6b5b04426a8b8d9baec46e088e518f959ce760fb /CSharp
parented5318f7fcb1540c1b9be9f3f66b02ac8ee2d2b1 (diff)
downloadivy-csharp-49270e1d64107e8478b8246b5d45e5d4bed759a7.zip
ivy-csharp-49270e1d64107e8478b8246b5d45e5d4bed759a7.tar.gz
ivy-csharp-49270e1d64107e8478b8246b5d45e5d4bed759a7.tar.bz2
ivy-csharp-49270e1d64107e8478b8246b5d45e5d4bed759a7.tar.xz
Utilisateur : Fcolin Date : 5/12/03 Heure : 9:29 Archivé dans $/EScribe/Ivy Commentaire: (vss 16)
Diffstat (limited to 'CSharp')
-rw-r--r--CSharp/Ivy/Ivy/IvyClient.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/CSharp/Ivy/Ivy/IvyClient.cs b/CSharp/Ivy/Ivy/IvyClient.cs
index 360c9b1..f3528dc 100644
--- a/CSharp/Ivy/Ivy/IvyClient.cs
+++ b/CSharp/Ivy/Ivy/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;
}
}