diff options
author | fcolin | 2007-02-01 09:57:53 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:57:53 +0000 |
commit | e3dd0c15c2f7758bd33119c057ac58ed0ab783d2 (patch) | |
tree | 9ea55abde27b64229224ce8d2e85bda0ae3e4f6e | |
parent | 4223ac996d571d4e92dbcad0e238b91608d1ba81 (diff) | |
download | ivy-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)
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyClient.cs | 9 |
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;
}
}
|