Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }