Exemple #1
0
 public MasterServer(int Port = 9999)
 {
     AttendantConsole              = new AttendantConsole(this);
     Server                        = new JSONSocketServer(Port);
     Server.ActionOnConnectHandle += NewConnection;
     Server.SocketMessageRecieved += OnMessageReceived;
     Server.OnDisconnect          += OnDisconnect;
 }
Exemple #2
0
 public void ShowConsole()
 {
     if (AttendantConsole == null || AttendantConsole.IsDisposed)
     {
         AttendantConsole = new AttendantConsole(this);
     }
     AttendantConsole.Show();
 }