diff options
author | fcolin | 2007-02-01 09:46:27 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:46:27 +0000 |
commit | 49270e1d64107e8478b8246b5d45e5d4bed759a7 (patch) | |
tree | 6b5b04426a8b8d9baec46e088e518f959ce760fb /CSharp | |
parent | ed5318f7fcb1540c1b9be9f3f66b02ac8ee2d2b1 (diff) | |
download | ivy-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.cs | 9 |
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;
}
}
|