Fixes #96 - Also added message if server is not running.

This commit is contained in:
Florian Küpper committed 2014-02-18 12:41:50 +01:00
1 parent 70f566682f
commit 7bf11363fe
5 files changed
+73 -11

No files matched your search

+7 -2
View File
@@ -203,9 +203,9 @@ namespace ServerLib
_Init(port, encrypted);
}
public static string GetLocalAddress()
public string GetBaseAddress()
{
return Dns.GetHostName();
return _BaseAddress.AbsoluteUri;
/*IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName());
foreach (IPAddress ip in ips)
@@ -216,6 +216,11 @@ namespace ServerLib
return "";*/
}
public bool IsRunning()
{
return _Host.State == CommunicationState.Opened;
}
#region server control
private void _Init(int port, bool encrypted)