1
0
mirror of https://github.com/livingcomputermuseum/IFS.git synced 2026-02-23 07:42:02 +00:00
Files
livingcomputermuseum.IFS/PUP/DirectoryServices.cs
2015-10-14 16:17:36 -07:00

51 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IFS
{
public class HostAddress
{
public HostAddress(byte network, byte host)
{
Network = network;
Host = host;
}
public byte Network;
public byte Host;
}
/// <summary>
/// Provides a basic database used by the Misc. Services to do name lookup and whatnot.
///
/// </summary>
public class DirectoryServices
{
private DirectoryServices()
{
// Get our host address; for now just hardcode it.
// TODO: need to define config files, etc.
_localHost = new HostAddress(1, 34);
}
public static DirectoryServices Instance
{
get { return _instance; }
}
public HostAddress LocalHostAddress
{
get { return _localHost; }
}
private HostAddress _localHost;
private static DirectoryServices _instance = new DirectoryServices();
}
}