public Class124(IAgileLogger iagileLogger_0, string string_1, Stream stream_1, ulong ulong_2) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.string_0 = string_1; this.stream_0 = stream_1; this.ulong_1 = ulong_2; if (cbGeneric_1 == null) { cbGeneric_1 = new CbGeneric <string>(Class124.smethod_0); } this.FileTransCompleted += cbGeneric_1; if (cbFileTransDisruptted_1 == null) { cbFileTransDisruptted_1 = new CbFileTransDisruptted(Class124.smethod_1); } this.FileTransDisruptted += cbFileTransDisruptted_1; if (cbFileSendedProgress_1 == null) { cbFileSendedProgress_1 = new CbFileSendedProgress(Class124.smethod_2); } this.FileTransProgress += cbFileSendedProgress_1; if (ulong_2 == 0L) { this.stream_0.Flush(); this.stream_0.Close(); new CbGeneric(this.method_0).BeginInvoke(null, null); } }
public DirectorySender(IAgileLogger iagileLogger_0, IFilePackageHelper interface35_1, string string_4, string string_5, string string_6, ulong ulong_4, ulong ulong_5) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.interface35_0 = interface35_1; DirectoryInfo info = new DirectoryInfo(string_4 + @"\"); this.string_0 = info.FullName; this.string_1 = string_5; this.string_2 = string_6; this.ulong_1 = ulong_4 - ulong_5; this.ulong_3 = ulong_5; this.ulong_0 = FileHelper.GetDirectorySize(this.string_0); if (cbFileTransCompleted_1 == null) { cbFileTransCompleted_1 = new CbFileTransCompleted(DirectorySender.smethod_0); } this.FileTransCompleted += cbFileTransCompleted_1; if (cbFileTransDisruptted_1 == null) { cbFileTransDisruptted_1 = new CbFileTransDisruptted(DirectorySender.smethod_1); } this.FileTransDisruptted += cbFileTransDisruptted_1; if (cbFileSendedProgress_1 == null) { cbFileSendedProgress_1 = new CbFileSendedProgress(DirectorySender.smethod_2); } this.FileTransProgress += cbFileSendedProgress_1; }
public IPv6UdpClient(string string_0, int int_0) { this.emptyAgileLogger_0 = new EmptyAgileLogger(); this.bool_0 = false; this.bool_1 = false; this.object_0 = new object(); IPAddress address = IPAddress.Parse(string_0); if (!((address.AddressFamily != AddressFamily.InterNetworkV6) || Socket.OSSupportsIPv6)) { throw new NotSupportedException("The IPAddress is IPv6 ,but current OS doesn't Support IPv6 !"); } if (!((address.AddressFamily != AddressFamily.InterNetwork) || Socket.SupportsIPv4)) { throw new NotSupportedException("The IPAddress is IPv4 ,but current OS doesn't Support IPv4 !"); } if (address.AddressFamily == AddressFamily.InterNetwork) { this.udpClient_0 = new UdpClient(new IPEndPoint(address, int_0)); } if (address.AddressFamily == AddressFamily.InterNetworkV6) { this.udpClient_1 = new UdpClient(new IPEndPoint(address, int_0)); } }
public void method_5(IAgileLogger iagileLogger_0) { if (iagileLogger_0 != null) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; } }
public void SetAgileLogger(IAgileLogger iagileLogger_0) { if (iagileLogger_0 != null) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; } }
public void SetAgileLogger(IAgileLogger iagileLogger_0) { if (iagileLogger_0 != null) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.eventSafeTrigger_0.AgileLogger = iagileLogger_0; } }
public void SetAgileLogger(IAgileLogger iagileLogger_0) { if (iagileLogger_0 != null) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.EodfwttmVK.AgileLogger = iagileLogger_0; } }
public Class141() { this.bool_0 = false; this.queue_0 = new Queue <IMessageHandler>(); this.object_0 = new object(); this.ilist_0 = new List <IProcess>(); this.interface13_0 = null; this.dispersiveKeyScope_0 = new DispersiveKeyScope(); this.emptyAgileLogger_0 = new EmptyAgileLogger(); this.bool_1 = true; }
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); } }
public IPv6UdpClient(int int_0) { this.emptyAgileLogger_0 = new EmptyAgileLogger(); this.bool_0 = false; this.bool_1 = false; this.object_0 = new object(); this.udpClient_0 = new UdpClient(int_0, AddressFamily.InterNetwork); if (Socket.OSSupportsIPv6) { int port = ((IPEndPoint)this.udpClient_0.Client.LocalEndPoint).Port; this.udpClient_1 = new UdpClient(port, AddressFamily.InterNetworkV6); } }
public IPv6UdpClient(AddressFamily addressFamily_0) { this.emptyAgileLogger_0 = new EmptyAgileLogger(); this.bool_0 = false; this.bool_1 = false; this.object_0 = new object(); if (addressFamily_0 == AddressFamily.InterNetwork) { this.udpClient_0 = new UdpClient(AddressFamily.InterNetwork); } else { if (!Socket.OSSupportsIPv6) { throw new NotSupportedException("Current OS doesn't Support IPv6 !"); } this.udpClient_1 = new UdpClient(AddressFamily.InterNetworkV6); } }
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); }
public FileSender(IAgileLogger iagileLogger_0, IFilePackageHelper interface35_1, string string_4, string string_5, ulong ulong_4) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.interface35_0 = interface35_1; this.string_0 = string_4; this.string_1 = string_5; this.ulong_0 = ulong_4; if (cbFileTransCompleted_1 == null) { cbFileTransCompleted_1 = new CbFileTransCompleted(FileSender.smethod_0); } this.FileTransCompleted += cbFileTransCompleted_1; if (cbFileTransDisruptted_1 == null) { cbFileTransDisruptted_1 = new CbFileTransDisruptted(FileSender.smethod_1); } this.FileTransDisruptted += cbFileTransDisruptted_1; if (cbFileSendedProgress_1 == null) { cbFileSendedProgress_1 = new CbFileSendedProgress(FileSender.smethod_2); } this.FileTransProgress += cbFileSendedProgress_1; }
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; }
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; }
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; }
public void Initialize(int port, ICustomizeHandler customizeHandler, IBasicHandler basicHandler) { if (this.emptyAgileLogger_0 == null) { if (this.string_0 == null) { this.emptyAgileLogger_0 = new EmptyAgileLogger(); } else { FileAgileLogger logger = new FileAgileLogger(this.string_0) { MaxLength4ChangeFile = 0x100000L }; this.emptyAgileLogger_0 = (EmptyAgileLogger)logger; } } Class16 class4 = new Class16(); MessageForbiddenHandler class8 = new MessageForbiddenHandler(); CJPlus.Rapid.WssOptions options = this.wssOptions_0 ?? new CJPlus.Rapid.WssOptions(); this.object_0 = Class157.smethod_0((Enum6)0, true, options.X509Certificate2, options.SslProtocols, options.OnlyWssClient); BasicMessageTypeRoom room3 = new BasicMessageTypeRoom(); room3.Initialize(); this.int_0 = room3.Logon; this.int_1 = room3.HeartBeat; CustomizeMessageTypeRoom room4 = new CustomizeMessageTypeRoom(); room4.Initialize(); FileMessageTypeRoom room2 = new FileMessageTypeRoom(); room2.Initialize(); P2PSessionMessageTypeRoom room = new P2PSessionMessageTypeRoom(); room.Initialize(); FriendsMessageTypeRoom room5 = new FriendsMessageTypeRoom(); room5.Initialize(); GroupMessageTypeRoom room6 = new GroupMessageTypeRoom(); room6.Initialize(); ContactsMessageTypeRoom room7 = new ContactsMessageTypeRoom(); room7.Initialize(); this.class40_0 = new Class40(new IMessageTypeRoom[] { room3, room4, room2, room, room5, room6, room7 }, null); this.class40_0.method_2(); this.class98_0 = new UserManager(); this.class98_0.RelogonMode = RelogonMode.ReplaceOld; this.class98_0.method_2(this.int_2); this.class98_0.SetAgileLogger(this.emptyAgileLogger_0); this.class98_0.method_3((IConnection)this.object_0); this.class98_0.Initialize(); this.class135_0 = new Class135(this.class98_0); RegularSender class5 = new RegularSender(); class5.method_0(this.class98_0); class5.method_2(class8); class5.method_1((IAction)this.object_0); class5.method_3(this.emptyAgileLogger_0); if (basicHandler == null) { basicHandler = new EmptyBasicHandler(); } Class159 class7 = new Class159(); class7.Event_0 += new CbGeneric <string, IPEndPoint>(this.OnConnectionBound); class7.method_1(room3); class7.method_3(class4); class7.method_2(this.class98_0); class7.method_7(this.bool_2); class7.method_5(class5); class7.method_8(this.class21_0.DiagnosticsEnabled ? this.class64_0 : basicHandler); class7.method_9(this.class135_0); class7.method_10(this.igroupManager_0 != null); class7.method_12(this.bool_3); class7.method_14(this.bool_4); class7.method_15(); this.class159_0 = class7; if (customizeHandler == null) { customizeHandler = new EmptyCustomizeHandler(); } Server class2 = new Server(); class2.SetStreamContract(class4); class2.SetAgileLogger(this.emptyAgileLogger_0); class2.SetICustomizeHandler(this.class21_0.DiagnosticsEnabled ? this.class64_0 : customizeHandler); class2.SetCustomizeMessageTypeRoom(room4); class2.method_1(class5); class2.SetUserManager(this.class98_0); class2.method_8(this.int_3); class2.method_11(this.class21_0.CheckResponseTTL4Query ? 10 : 0); class2.method_9(this.class135_0); class2.Event_0 += new CbGeneric <string, int, byte[], string>(this.method_6); class2.method_14(this.class21_0.CustomizeInfoHandleMode, this.class21_0.QueueWorkerThreadCount); this.class21_0.method_0((IConnection)this.object_0, this.class21_0.DiagnosticsEnabled ? this.class64_0.method_0() : null, class2.method_13()); this.class112_0 = class2; Class132 class3 = new Class132(); class3.method_1(room); class3.method_0(class4); class3.method_2(class5); class3.method_3(this.class98_0); class3.method_4(this.class135_0); class3.method_5(this.emptyAgileLogger_0); this.class2_0 = new FileTransfering(); this.class2_0.method_0(this.emptyAgileLogger_0); this.class13_0 = new FileHandler(); this.class13_0.method_0(this.emptyAgileLogger_0); this.class2_0.TTL4ResumedFileItem = this.class21_0.TempFile4ResumedTTL; this.class13_0.method_2(class5); this.class13_0.method_3(class4); this.class13_0.imethod_1(0x100000); this.class13_0.method_4(new Class3(0x800)); this.class13_0.method_7(this.class21_0.UseWorkThreadPool); this.class13_0.Initialize("_0", room2.FilePackageData); this.class27_0 = new Parameterized(port); this.class27_0.method_2(this.class21_0.CheckFileZeroSpeedSpanInSecs); this.class27_0.method_0(this.emptyAgileLogger_0); this.class27_0.method_11(this.class13_0); this.class27_0.method_13(room2); this.class27_0.method_12(this.class2_0); this.class27_0.method_14(class4); this.class27_0.method_15(class5); this.class27_0.method_3("_0"); Class69 class6 = new Class69(); class6.method_0(room2); class6.method_6(class5); class6.method_1(class4); class6.method_3(this.class13_0); class6.method_2(this.class2_0); class6.method_4(this.class27_0); this.class98_0.SomeOneDisconnected += new CbGeneric <UserData, DisconnectedType>(this.method_8); this.class25_0.method_6(this.class21_0.DiagnosticsEnabled ? this.class64_0 : this.ifriendsManager_0); this.class25_0.method_1(room5); this.class25_0.method_7(this.class135_0); this.class25_0.method_3(class4); this.class25_0.method_5(class5); this.class25_0.method_2(this.class98_0); this.class25_0.method_9(); this.class139_0.SetMessageTypeRoom(room6); this.class139_0.method_2(class4); this.class139_0.method_4(class5); this.class139_0.method_0(this.class98_0); this.class139_0.SetGroupManager(this.class21_0.DiagnosticsEnabled ? this.class64_0 : this.igroupManager_0); this.class139_0.method_6(this.class135_0); this.class139_0.Init(); this.class60_0.method_1(room7); this.class60_0.method_2(class4); this.class60_0.method_4(class5); this.class60_0.method_0(this.class98_0); this.class60_0.method_5(this.class21_0.DiagnosticsEnabled ? this.class64_0 : this.icontactsManager_0); this.class60_0.method_6(this.class135_0); this.class60_0.method_7(); IProcess[] processers = new IProcess[] { class7, class2, class6, class3, this.class25_0, this.class139_0, this.class60_0 }; MessageDispatcher class9 = new MessageDispatcher(new Class144(new Class115(processers)), class8); class9.imethod_0(this.emptyAgileLogger_0); this.object_0.imethod_22(this); this.object_0.SetAgileLogger(this.emptyAgileLogger_0); this.object_0.LjXdpkRter(this.string_1); this.object_0.SetData(port); this.object_0.imethod_10(GlobalUtil.MaxLengthOfMessage); this.object_0.SetStreamContract(class4); this.object_0.imethod_12(class9); this.object_0.SocketSendBuffSize = this.class21_0.SocketSendBuffSize; this.object_0.imethod_26((this.class21_0.WriteTimeoutInSecs <= 0) ? -1 : (this.class21_0.WriteTimeoutInSecs * 0x3e8)); this.object_0.MaxChannelCacheSize = this.class21_0.MaxChannelCacheSize; this.object_0.Boolean_0 = this.class21_0.Boolean_0; this.object_0.AsynConnectionEvent = this.class21_0.AsynConnectionEvent; this.object_0.UncompletedSendingCount4Busy = this.class21_0.UncompletedSendingCount4Busy; ((BaseTcpEngine)this.object_0).method_1(new Class119(class2, this.class98_0)); this.object_0.Initialize(); if (this.bool_1) { this.class17_0 = new Class17(this.class98_0, new SecurityFileLogger(this.emptyAgileLogger_0)); this.class17_0.method_2(); } if (this.bool_3) { this.object_1 = this.method_9(port + 1); } this.class64_0.ieduNnurne(customizeHandler, basicHandler, this.igroupManager_0, this.ifriendsManager_0, this.icontactsManager_0); this.bool_0 = true; }
public LogonResponse Initialize(string userID, string logonPassword, string serverIP, int serverPort, ICustomizeHandler customizeHandler) { if (this.emptyAgileLogger_0 == null) { if (this.string_1 == null) { this.emptyAgileLogger_0 = new EmptyAgileLogger(); } else { FileAgileLogger logger = new FileAgileLogger(this.string_1) { MaxLength4ChangeFile = 0x100000L }; this.emptyAgileLogger_0 = (EmptyAgileLogger)logger; } } this.eventSafeTrigger_0.AgileLogger = this.emptyAgileLogger_0; this.string_0 = logonPassword; Class16 class2 = new Class16(); MessageForbiddenHandler class3 = new MessageForbiddenHandler(); this.object_0 = Class157.CreateInterface26((Enum6)0); int num = (!this.advancedOptions_0.CheckResponseTTL4Query || !this.bool_4) ? 10 : 0; this.class72_0 = new Class72(num, this.int_1); this.class72_0.SetEngine((IEngine)this.object_0); Interface36 interface2 = new Class94((ICommitMessageToServer)this.object_0, class3, null); Class79 class4 = new Class79(this.class72_0, interface2); BasicMessageTypeRoom room = new BasicMessageTypeRoom(); room.Initialize(); CustomizeMessageTypeRoom room2 = new CustomizeMessageTypeRoom(); room2.Initialize(); FileMessageTypeRoom room3 = new FileMessageTypeRoom(); room3.Initialize(); P2PSessionMessageTypeRoom room4 = new P2PSessionMessageTypeRoom(); room4.Initialize(); FriendsMessageTypeRoom room5 = new FriendsMessageTypeRoom(); room5.Initialize(); GroupMessageTypeRoom room6 = new GroupMessageTypeRoom(); room6.Initialize(); ContactsMessageTypeRoom room7 = new ContactsMessageTypeRoom(); room7.Initialize(); this.class113_0 = new BasicOutter(); this.class113_0.SetBasicMessageTypeRoom(room); this.class113_0.SetActionType(class4); this.class113_0.SetStreamContract(class2); this.class113_0.SetICommitMessageToServer((ICommitMessageToServer)this.object_0); this.class113_0.NgadStsqsh += new CbGeneric(this.method_1); this.class113_0.method_2(userID); this.class71_0 = new Class71(this.class113_0, this.bool_4 ? 0 : this.int_0); Class78 class9 = new Class78(); class9.method_5(this.class113_0); class9.method_1(room); class9.method_2(class2); class9.method_4((ICommitMessageToServer)this.object_0); class9.method_3(class4); this.class43_0 = new Class43(); this.class43_0.method_5(class4); this.class43_0.method_4(class2); this.class43_0.method_3(room2); this.class43_0.method_1(userID); CustomizeProcess class10 = new CustomizeProcess(); class10.SetStreamContractHelper(class2); class10.SetCustomizeHandler(customizeHandler); class10.SetCustomizeMessageTypeRoom(room2); class10.SetActionType(class4); class10.Event_0 += new CbGeneric <string, int, byte[], string>(this.OnMessageReceived); Class75 class7 = new Class75(class4, class2, room4); class7.method_1(userID); Class24 class8 = new Class24(); class8.method_0(room4); class8.method_1(class2); class8.DaTyrcXefU(class7); this.class2_0 = new FileTransfering(); this.class2_0.method_0(this.emptyAgileLogger_0); this.class13_0 = new FileHandler(); this.class13_0.method_0(this.emptyAgileLogger_0); this.class2_0.TTL4ResumedFileItem = this.advancedOptions_0.TempFile4ResumedTTL; this.class13_0.method_1(class4); this.class13_0.method_3(class2); this.class13_0.imethod_1(0x100000); this.class13_0.method_7(this.advancedOptions_0.UseWorkThreadPool); this.class13_0.Initialize(userID, room3.FilePackageData); this.class28_0 = new Class28(); this.class28_0.method_2(this.advancedOptions_0.CheckFileZeroSpeedSpanInSecs); this.class28_0.method_0(this.emptyAgileLogger_0); this.class28_0.method_13(room3); this.class28_0.method_14(class2); this.class28_0.method_16(class4); this.class28_0.method_12(this.class2_0); this.class28_0.method_11(this.class13_0); this.class28_0.Initialize(userID); Class70 class11 = new Class70(); class11.method_0(room3); class11.method_1(class2); class11.method_3(this.class13_0); class11.method_2(this.class2_0); class11.method_4(this.class28_0); this.class126_0 = new FriendsOutter(); this.class126_0.method_4(class4); this.class126_0.method_3(class2); this.class126_0.method_2(room5); this.class126_0.FriendOffline += new CbGeneric <string>(this.method_6); this.class126_0.method_1(userID); Class59 class12 = new Class59(); class12.method_2(class2); class12.method_3(this.class126_0); class12.method_1(room5); this.class19_0 = new GroupOutter2(); this.class19_0.method_0(class4); this.class19_0.uBkeyEkxPJ(class2); this.class19_0.Iibebiqvn1(room6); this.class19_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0); this.class19_0.GroupmateOffline += new CbGeneric <string>(this.method_7); this.class19_0.method_4(userID); Class140 class13 = new Class140(); class13.method_0(room6); class13.method_2(this.class19_0); class13.method_1(class2); this.ContactsOutter_0 = new ContactsOutter(); this.ContactsOutter_0.method_2(class4); this.ContactsOutter_0.SetStreamContract(class2); this.ContactsOutter_0.SetMessageType(room7); this.ContactsOutter_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0); this.ContactsOutter_0.ContactsOffline += new CbGeneric <string>(this.method_8); this.ContactsOutter_0.method_5(userID); Class20 class14 = new Class20(); class14.SetMessageType(room7); class14.SetOutter(this.ContactsOutter_0); class14.SetStreamContract(class2); IProcess[] processers = new IProcess[] { class9, class10, class8, class11, class12, class13, class14 }; this.class141_0 = new Class141(processers, this.class72_0); this.class141_0.method_6(this.advancedOptions_0.AsynMessageQueueEnabled && !this.bool_4); this.class141_0.method_7(class4); this.class141_0.method_4(this.emptyAgileLogger_0); this.class141_0.method_8(); new Class40(new IMessageTypeRoom[] { room, room2, room3, room4, room5, room6, room7 }, this.class141_0).method_2(); MessageDispatcher class6 = new MessageDispatcher(new Class144(new Class115(this.class141_0)), class3); class6.imethod_0(this.emptyAgileLogger_0); this.object_0.SetAgileLogger(this.emptyAgileLogger_0); this.object_0.Sock5ProxyInfo = this.sock5ProxyInfo_0; this.object_0.SetAgileIPE(new AgileIPE(serverIP, serverPort)); this.object_0.SetStreamContract(class2); this.object_0.imethod_12(class6); this.object_0.imethod_10(GlobalUtil.MaxLengthOfMessage); this.object_0.AutoReconnect = false; this.object_0.imethod_23((this.advancedOptions_0.WriteTimeoutInSecs <= 0) ? -1 : (this.advancedOptions_0.WriteTimeoutInSecs * 0x3e8)); this.object_0.SocketSendBuffSize = this.advancedOptions_0.SocketSendBuffSize; this.object_0.UncompletedSendingCount4Busy = this.advancedOptions_0.UncompletedSendingCount4Busy; this.object_0.ConnectionInterrupted += new CbGeneric(this.method_5); this.object_0.imethod_25(new CbGeneric(this.method_4)); this.object_0.ConnectionRebuildStart += new CbGeneric(this.method_2); this.object_0.Initialize(); LogonFullResponse response = this.class113_0.method_7(this.systemToken, this.string_0); if (response.LogonResult != LogonResult.Succeed) { this.object_0.OnDispose(); return(response); } this.object_0.imethod_27(); this.bool_0 = response.Boolean_0; this.bool_3 = response.GroupRelationEnabled; if ((this.bool_0 && this.advancedOptions_0.Boolean_0) && !this.bool_4) { if (response.UseAsP2PServer && (this.agileIPE_0 == null)) { this.agileIPE_0 = new AgileIPE(this.object_0.GetAgileIPE().String_0, this.object_0.GetAgileIPE().Port + 1); } if (this.agileIPE_0 != null) { this.class58_0 = new P2PController(); this.class58_0.method_6(this.agileIPE_0); this.class58_0.method_5(this.emptyAgileLogger_0); this.class58_0.method_3((Interface26)this.object_0); this.class58_0.method_2(class7); this.class58_0.method_4(room4); this.class58_0.P2PChannelClosed += new CbGeneric <P2PChannelState>(this.method_3); this.class58_0.method_7(userID, this.bool_2); interface2.imethod_2(this.class58_0); class8.method_2(this.class58_0); this.class13_0.method_4(new Class56(this.class58_0)); this.class19_0.method_1(this.class58_0); } } if (this.bool_2) { this.class108_0 = new TcpPassiveEngine((Interface26)this.object_0, this.class113_0, this.emptyAgileLogger_0); this.class108_0.method_3(); } this.class71_0.method_0(); this.class113_0.SendHeartBeatMessage(); this.string_3 = userID; this.bool_1 = true; this.object_0.AutoReconnect = this.bool_5; return(response); }