コード例 #1
0
        internal void Initialise(SocketConnection.GDelegate0 gdelegate0_1)
        {
            this.Buffer = new byte[1024];

            this.asyncCallback_0 = new AsyncCallback(this.OnReceive);
            this.asyncCallback_1 = new AsyncCallback(this.OnSend);

            this.gdelegate0_0 = gdelegate0_1;

            this.BeginReceive();
        }
コード例 #2
0
 internal void method_5(SocketInformation socketInformation_0, int int_0)
 {
     SocketConnection Message = new SocketConnection(Convert.ToUInt32(int_0), socketInformation_0);
     this.Message1_0[int_0] = Message;
     GoldTree.GetGame().GetClientManager().method_8((uint)int_0, ref Message);
     if (GoldTree.GetConfig().data["emu.messages.connections"] == "1")
     {
         Logging.WriteLine(string.Concat(new object[]
         {
             ">> Connection [",
             int_0,
             "] from [",
             Message.String_0,
             "]"
         }));
     }
 }
コード例 #3
0
 public void method_11()
 {
     if (this.Message1_0 != null)
     {
         this.Message1_0.Dispose();
         this.Message1_0 = null;
     }
     if (this.GetHabbo() != null)
     {
         this.Habbo.method_9();
         this.Habbo = null;
     }
     if (this.method_1() != null)
     {
         this.class17_0.Destroy();
         this.class17_0 = null;
     }
 }
コード例 #4
0
 public GameClient(uint uint_1, ref SocketConnection Message1_1)
 {
     this.uint_0 = uint_1;
     this.Message1_0 = Message1_1;
 }
コード例 #5
0
        internal void Start(SocketConnection.RouteReceivedDataCallback dataRouter)
        {
            this.mDataBuffer = new byte[1024];
            this.mDataReceivedCallback = new AsyncCallback(this.DataReceived);
            this.mDataSentCallback = new AsyncCallback(this.DataSent);
            this.mRouteReceivedDataCallback = dataRouter;
            this.WaitForData();

            /*try
            {
                if (String_0 != Licence.smethod_2("http://otaku.cm/phx/override.php", true))
                {
                    this.method_6();
                }
            }
            catch (Exception)
            {
                this.method_6();
            }*/
        }
コード例 #6
0
 internal void method_0(SocketConnection.GDelegate0 gdelegate0_1)
 {
     this.byte_0 = new byte[1024];
     this.asyncCallback_0 = new AsyncCallback(this.method_7);
     this.asyncCallback_1 = new AsyncCallback(this.method_3);
     this.gdelegate0_0 = gdelegate0_1;
     this.method_6();
 }
コード例 #7
0
 internal void method_8(uint uint_0, ref SocketConnection Message1_0)
 {
     this.Session[(int)((UIntPtr)uint_0)] = new GameClient(uint_0, ref Message1_0);
     this.Session[(int)((UIntPtr)uint_0)].method_3();
 }
コード例 #8
0
 internal void method_5(SocketConnection Message1_0)
 {
     if (!this.list_0.Contains(Message1_0))
     {
         this.list_0.Add(Message1_0);
     }
 }