Currently you can connect and Reach the "ConnectState" from there anything you state will just be an "InvalidCommand"
29 lines
No EOL
550 B
C#
29 lines
No EOL
550 B
C#
using System;
|
|
|
|
namespace WinPC.Engine.Abstract.Networking
|
|
{
|
|
public enum ServerStatus
|
|
{
|
|
Stopped = 0,
|
|
Starting = 1,
|
|
Running = 2
|
|
}
|
|
|
|
|
|
public interface IServer
|
|
{
|
|
int Port { get; }
|
|
int MaxConnections { get; }
|
|
int MaxQueuedConnections { get; }
|
|
bool Enabled { get; }
|
|
|
|
string MOTD { get; }
|
|
|
|
string ServerOwner { get; }
|
|
|
|
void Start(Int32 maxConnections, Int32 maxQueueSize);
|
|
void Stop();
|
|
void Running();
|
|
|
|
}
|
|
} |