private void ComputeRegular(int i, int scktID) { string createdFilePath = "../../json/created[" + i + "].json"; string message = CreateMandelbrotRequestObject(createdFilePath); TcpConnector.Send(scktID, createdFilePath); Bitmap bitmap = TcpConnector.Recieve(scktID); bitmap.Save("saves/save[" + i + "].png", ImageFormat.Png); pictureBox1.Image = bitmap; }
private static void RequestParalel(int scktID, int i) { TakenSocketIds.Add(scktID); string createdFilePath = "../../json/created[" + i + "].json"; TcpConnector.Send(scktID, createdFilePath); Bitmap bitmap = TcpConnector.Recieve(scktID); bitmap.Save("saves/save[" + i + "].png", ImageFormat.Png); TakenSocketIds.Remove(scktID); }