Пример #1
0
 //public static void Main()
 //{
 //    ServerGUI serverGUI = new ServerGUI();
 //    serverGUI.startServer();
 //}
 public void startServer()
 {
     this.server = new ChatServer();
     server.Client_Conn += new ClientConnHandler(this.Client_Conn_Event);
     server.Client_Disc += new ClientDiscHandler(this.Client_Disc_Event);
     server.Message_Sent += new MessageSentHandler(this.Message_Sent_Event);
     server.Message_Received += new MessageReceivedHandler(this.Message_Received_Event);
     this.server.connect();
 }
Пример #2
0
 public ServerGUI()
 {
     this.server = new ChatServer();
 }