コード例 #1
0
 // Token: 0x060000A5 RID: 165 RVA: 0x000048C0 File Offset: 0x00002AC0
 public void AuthStream()
 {
     for (;;)
     {
         try
         {
             Packets.Auth auth   = new Packets.Auth();
             Socket       socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
             if (MapperProductSchema.mapper == "")
             {
                 socket.Connect(new IPEndPoint(IPAddress.Parse(MapperProductSchema.m_Context), 80));
             }
             else
             {
                 socket.Connect(new IPEndPoint(IPAddress.Parse(MapperProductSchema.mapper), 80));
             }
             this.tcpSocket.NoDelay = true;
             List <byte> list = auth.ToList();
             list.AddRange(this.m_Watcher);
             socket.Send(list.ToArray());
             socket.ReceiveTimeout = 7000;
             socket.Receive(new byte[1]);
             if (this.streamClass != null)
             {
                 this.streamClass.Dispose();
                 this.streamClass = null;
             }
             this.streamClass = new Streaming(socket);
             break;
         }
         catch (Exception ex)
         {
             SchemaMapper.ReflectContext("Error on Socket conection " + ex.ToString());
         }
     }
 }
コード例 #2
0
 // Token: 0x060000A4 RID: 164 RVA: 0x00004894 File Offset: 0x00002A94
 public void Auth()
 {
     Packets.Auth auth = new Packets.Auth();
     this.id = auth.id;
     auth.Execute(Product.tests);
 }