Ejemplo n.º 1
0
 public ReliableUdpEngine(IPv6UdpClient class164_0, int int_2, IAgileLogger iagileLogger_0, Interface18 interface18_0, string string_1)
 {
     this.object_0           = 0;
     this.emptyAgileLogger_0 = new EmptyAgileLogger();
     this.int_0 = 0x100000;
     this.int_1 = 100;
     this.eventSafeTrigger_0     = new EventSafeTrigger(new EmptyAgileLogger(), "NP0TGVBgJ9QwLAhYTKW.XpFDH2BqcL8UtxuLtNZ");
     this.safeDictionary_0       = new SafeDictionary <IPEndPoint, Class116>();
     this.safeDictionary_1       = new SafeDictionary <IPEndPoint, Class100>();
     this.string_0               = "";
     this.string_0               = string_1;
     this.object_1               = class164_0;
     this.object_1.DataReceived += new CbGeneric <IPEndPoint, byte[]>(this.udpClient_DataReceived);
     this.object_1.Initialize();
     this.int_0 = int_2;
     this.int_1 = this.int_0 / 500;
     this.emptyAgileLogger_0             = iagileLogger_0 ?? new EmptyAgileLogger();
     this.eventSafeTrigger_0.AgileLogger = this.emptyAgileLogger_0;
     this.class32_0 = interface18_0 ?? new Class32();
     this.class32_0.SynAckReceived          += new CbGeneric <IPEndPoint, string>(this.method_7);
     this.class32_0.FeedbackVacancyReceived += new CbGeneric <IPEndPoint, FeedbackVacancyBody>(this.method_6);
     this.class32_0.ExitReceived            += new CbGeneric <IPEndPoint>(this.method_2);
     this.class32_0.PMTUTestAckReceived     += new CbGeneric <IPEndPoint, string, ushort>(this.method_1);
     new CbGeneric(this.CircleQuickly).BeginInvoke(null, null);
     new CbGeneric(this.CircleQuickly2).BeginInvoke(null, null);
 }
Ejemplo n.º 2
0
 public RetryEngine()
 {
     this.disposed         = false;
     this.taskQueue        = new SafeQueue <TaskBag <TTask> >();
     this.retryList        = new SafeList <TaskBag <TTask> >();
     this.eventSafeTrigger = new EventSafeTrigger();
     this.retryingCount    = 0;
 }
Ejemplo n.º 3
0
 public FileReceiver(IAgileLogger iagileLogger_0, string string_3, string string_4, ulong ulong_2, string string_5)
 {
     this.diYatLwGC          = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
     this.emptyAgileLogger_0 = new EmptyAgileLogger();
     this.ulong_0            = 0L;
     this.HtwoUmmJj          = "";
     this.object_0           = 0;
     this.int_0              = 0;
     this.byte_0             = 0;
     this.filePackage_0      = new FilePackage[0x100];
     this.int_1              = 0;
     this.bool_0             = false;
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.HtwoUmmJj          = string_3;
     if (File.Exists(string_4))
     {
         File.Delete(string_4);
     }
     this.string_0 = string_4;
     this.string_1 = string_4 + string_5;
     while (File.Exists(this.string_1))
     {
         this.string_1 = this.string_1 + string_5;
     }
     this.string_2     = FileHelper.GetFileNameNoPath(string_4);
     this.fileStream_0 = new FileStream(this.string_1, FileMode.OpenOrCreate);
     this.ulong_1      = ulong_2;
     if (cbGeneric_1 == null)
     {
         cbGeneric_1 = new CbGeneric <string>(FileReceiver.smethod_0);
     }
     this.FileTransCompleted += cbGeneric_1;
     if (cbFileTransDisruptted_1 == null)
     {
         cbFileTransDisruptted_1 = new CbFileTransDisruptted(FileReceiver.smethod_1);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_1;
     if (cbFileSendedProgress_1 == null)
     {
         cbFileSendedProgress_1 = new CbFileSendedProgress(FileReceiver.nAuyhuNgq);
     }
     this.FileTransProgress += cbFileSendedProgress_1;
     if (ulong_2 == 0L)
     {
         this.fileStream_0.Flush();
         this.fileStream_0.Close();
         if (!File.Exists(this.string_0))
         {
             File.Move(this.string_1, this.string_0);
         }
         new CbGeneric(this.method_0).BeginInvoke(null, null);
     }
 }
Ejemplo n.º 4
0
 internal AgileTcpListener(int int_5, bool bool_3, string string_2, bool bool_4, bool bool_5, IAgileLogger iagileLogger_2, IAgileLogger iagileLogger_3, Class119 class119_0)
 {
     if ((!bool_3 && ((this.enum0_0 == ((ClientTimeEnum)3)) || (this.enum0_0 == ((ClientTimeEnum)2)))) && smethod_0("ESF-" + this.string_0))
     {
         throw new Exception("CJFramework Error : there's one CJFramework server instance running. AuthorizedUserID is " + this.string_0);
     }
     this.bool_0             = bool_5;
     this.iagileLogger_0     = iagileLogger_2;
     this.iagileLogger_1     = iagileLogger_3;
     this.eventSafeTrigger_0 = new EventSafeTrigger(iagileLogger_2, "Agt5W7B5WBoJhMi3tS0.akDdtXBaxZZh04bUDlN");
     this.class117_0         = new Class117(this.string_0, this.enum0_0, this.iagileLogger_1, class119_0);
     if (!(bool_3 || !this.bool_2))
     {
         this.class117_0.Event_0 += new CbGeneric <bool, bool>(this.method_6);
         this.class117_0.method_2();
     }
     if (cbGeneric_1 == null)
     {
         cbGeneric_1 = new CbGeneric <NetworkStream, EndPoint>(AgileTcpListener.OnTcpConnectionEstablished);
     }
     this.TcpConnectionEstablished += cbGeneric_1;
     this.bool_1 = bool_3;
     this.int_0  = bool_3 ? 0x7fffffff : (this.int_3 + 1);
     if (string_2 != null)
     {
         this.tcpListener_0 = new TcpListener(IPAddress.Parse(string_2), int_5);
     }
     else
     {
         this.tcpListener_0 = new TcpListener(IPAddress.Any, int_5);
         if (Socket.OSSupportsIPv6 && bool_4)
         {
             this.tcpListener_1 = new TcpListener(IPAddress.IPv6Any, int_5);
         }
     }
     this.tcpListener_0.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, bool_3);
     if (this.tcpListener_1 != null)
     {
         this.tcpListener_1.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, bool_3);
     }
 }
Ejemplo n.º 5
0
    public DirectoryReceiver(IAgileLogger iagileLogger_0, string string_5, string string_6, ResumedProjectItem resumedProjectItem_0)
    {
        this.eventSafeTrigger_0 = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
        this.emptyAgileLogger_0 = new EmptyAgileLogger();
        this.ulong_0            = 0L;
        this.ulong_1            = 0L;
        this.ulong_2            = 0L;
        this.string_3           = "";
        this.ulong_4            = 0L;
        this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
        this.string_3           = string_5;
        this.string_0           = resumedProjectItem_0.LocalSavePath;
        this.string_4           = string_6;
        string[] strArray = this.string_0.Trim().Split(new char[] { '\\' });
        this.object_0 = strArray[strArray.Length - 2];
        this.ulong_3  = resumedProjectItem_0.OriginSize;
        this.ulong_0  = resumedProjectItem_0.ReceivedCount;
        if (cbGeneric_3 == null)
        {
            cbGeneric_3 = new CbGeneric <string>(DirectoryReceiver.smethod_3);
        }
        this.FileTransCompleted += cbGeneric_3;
        if (cbFileTransDisruptted_2 == null)
        {
            cbFileTransDisruptted_2 = new CbFileTransDisruptted(DirectoryReceiver.smethod_4);
        }
        this.FileTransDisruptted += cbFileTransDisruptted_2;
        if (cbFileSendedProgress_2 == null)
        {
            cbFileSendedProgress_2 = new CbFileSendedProgress(DirectoryReceiver.smethod_5);
        }
        this.FileTransProgress += cbFileSendedProgress_2;
        this.ulong_4            = resumedProjectItem_0.ReceivedCount - resumedProjectItem_0.DisrupttedFileReceivedCount;
        string str = this.string_0 + resumedProjectItem_0.DisrupttedFileRelativePath;

        this.enisnmwGbe = new FileReceiver(this.emptyAgileLogger_0, this.string_3, resumedProjectItem_0.LocalTempFileSavePath, str, resumedProjectItem_0.DisrupttedFileSize, resumedProjectItem_0.DisrupttedFileReceivedCount);
        this.enisnmwGbe.FileTransDisruptted += new CbFileTransDisruptted(this.method_5);
        this.enisnmwGbe.FileTransCompleted  += new CbGeneric <string>(this.OnFileTransCompleted);
        this.enisnmwGbe.FileTransProgress   += new CbFileSendedProgress(this.method_3);
    }
Ejemplo n.º 6
0
 public FileReceiver(IAgileLogger iagileLogger_0, string string_3, ResumedProjectItem resumedProjectItem_0)
 {
     this.diYatLwGC          = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
     this.emptyAgileLogger_0 = new EmptyAgileLogger();
     this.ulong_0            = 0L;
     this.HtwoUmmJj          = "";
     this.object_0           = 0;
     this.int_0              = 0;
     this.byte_0             = 0;
     this.filePackage_0      = new FilePackage[0x100];
     this.int_1              = 0;
     this.bool_0             = false;
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.HtwoUmmJj          = string_3;
     this.string_1           = resumedProjectItem_0.LocalTempFileSavePath;
     this.string_0           = resumedProjectItem_0.LocalSavePath;
     this.string_2           = FileHelper.GetFileNameNoPath(resumedProjectItem_0.LocalSavePath);
     this.fileStream_0       = new FileStream(this.string_1, FileMode.Open);
     this.fileStream_0.Seek((long)resumedProjectItem_0.ReceivedCount, SeekOrigin.Begin);
     this.ulong_1 = resumedProjectItem_0.OriginSize;
     this.ulong_0 = resumedProjectItem_0.ReceivedCount;
     if (cbGeneric_2 == null)
     {
         cbGeneric_2 = new CbGeneric <string>(FileReceiver.smethod_2);
     }
     this.FileTransCompleted += cbGeneric_2;
     if (cbFileTransDisruptted_2 == null)
     {
         cbFileTransDisruptted_2 = new CbFileTransDisruptted(FileReceiver.smethod_3);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_2;
     if (cbFileSendedProgress_2 == null)
     {
         cbFileSendedProgress_2 = new CbFileSendedProgress(FileReceiver.smethod_4);
     }
     this.FileTransProgress += cbFileSendedProgress_2;
 }
Ejemplo n.º 7
0
 public FileReceiver(IAgileLogger iagileLogger_0, string string_3, string string_4, string string_5, ulong ulong_2, ulong ulong_3)
 {
     this.diYatLwGC          = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
     this.emptyAgileLogger_0 = new EmptyAgileLogger();
     this.ulong_0            = 0L;
     this.HtwoUmmJj          = "";
     this.object_0           = 0;
     this.int_0              = 0;
     this.byte_0             = 0;
     this.filePackage_0      = new FilePackage[0x100];
     this.int_1              = 0;
     this.bool_0             = false;
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.HtwoUmmJj          = string_3;
     this.string_1           = string_4;
     this.string_0           = string_5;
     this.string_2           = FileHelper.GetFileNameNoPath(string_5);
     this.fileStream_0       = new FileStream(this.string_1, FileMode.Open);
     this.fileStream_0.Seek((long)ulong_3, SeekOrigin.Begin);
     this.ulong_1 = ulong_2;
     this.ulong_0 = ulong_3;
     if (cbGeneric_3 == null)
     {
         cbGeneric_3 = new CbGeneric <string>(FileReceiver.smethod_5);
     }
     this.FileTransCompleted += cbGeneric_3;
     if (cbFileTransDisruptted_3 == null)
     {
         cbFileTransDisruptted_3 = new CbFileTransDisruptted(FileReceiver.smethod_6);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_3;
     if (cbFileSendedProgress_3 == null)
     {
         cbFileSendedProgress_3 = new CbFileSendedProgress(FileReceiver.smethod_7);
     }
     this.FileTransProgress += cbFileSendedProgress_3;
 }
Ejemplo n.º 8
0
 public DirectoryReceiver(IAgileLogger iagileLogger_0, string string_5, string string_6, ulong ulong_5, string string_7)
 {
     this.eventSafeTrigger_0 = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
     this.emptyAgileLogger_0 = new EmptyAgileLogger();
     this.ulong_0            = 0L;
     this.ulong_1            = 0L;
     this.ulong_2            = 0L;
     this.string_3           = "";
     this.ulong_4            = 0L;
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.string_3           = string_5;
     if (!string_6.EndsWith(@"\"))
     {
         string_6 = string_6 + @"\";
     }
     this.string_0 = string_6;
     this.string_4 = string_7;
     string[] strArray = this.string_0.Trim().Split(new char[] { '\\' });
     this.object_0 = strArray[strArray.Length - 2];
     this.ulong_3  = ulong_5;
     if (cbGeneric_2 == null)
     {
         cbGeneric_2 = new CbGeneric <string>(DirectoryReceiver.smethod_0);
     }
     this.FileTransCompleted += cbGeneric_2;
     if (cbFileTransDisruptted_1 == null)
     {
         cbFileTransDisruptted_1 = new CbFileTransDisruptted(DirectoryReceiver.smethod_1);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_1;
     if (cbFileSendedProgress_1 == null)
     {
         cbFileSendedProgress_1 = new CbFileSendedProgress(DirectoryReceiver.smethod_2);
     }
     this.FileTransProgress += cbFileSendedProgress_1;
 }