コード例 #1
0
 private void btStartServer_Click(object sender, EventArgs e)
 {
     if(server==null)
         server = new Server(listenPort, sendPort, nbrPacketToSend, nbrPacket, sendBroadcastPort, calculatorClass, cuttingClass);
     server.startServer();
     server.OnUpdateClient += new Server.UpdateClient(server_OnUpdateClient);
     server.OnDisplayFractal += new Server.displayFractal(server_OnDisplayFractal);
     server.OnUpdateResult += new Server.UpdateResult(server_OnUpdateResult);
     server.OnUpdateWorkInfo += new Server.UpdateWorkInfo(server_OnUpdateWorkInfo);
 }