using System.Net;

namespace  Alienseed.BaseNetworkServer
{
    public delegate void OnServerCrashHandler(INetworkServer server);

    public interface INetworkServer
    {
        IPAddress Address { get; }
        int Port { get; }
        bool Start();
        void Stop();
        bool Running { get; }

        event OnServerCrashHandler OnCrash;
    }
}
