Esempio n. 1
0
 // Token: 0x060017A5 RID: 6053 RVA: 0x0002A208 File Offset: 0x00029208
 public unsafe static void PostRemoteMessages()
 {
     for (;;)
     {
         uint num = 0u;
         try
         {
             fixed(byte *ptr = Messenger.buffer)
             {
                 num = Net.RecvGameplayMessage((void *)ptr, (uint)Messenger.buffer.Length);
                 if (num == 0u)
                 {
                     break;
                 }
             }
         }
         finally
         {
             byte *ptr = null;
         }
         MemoryStream input        = new MemoryStream(Messenger.buffer, 0, (int)num);
         BinaryReader binaryReader = new BinaryReader(input);
         uint         port         = binaryReader.ReadUInt32();
         uint         typeHash     = binaryReader.ReadUInt32();
         Message      message      = Activator.CreateInstance <Message>(typeHash, binaryReader);
         Messenger.Post(message, port);
     }
 }
Esempio n. 2
0
 // Token: 0x0600155C RID: 5468 RVA: 0x00025DCA File Offset: 0x00024DCA
 public virtual void Post(uint port)
 {
     Messenger.Post(this, port);
 }