public static void HandleAuthOpcode(AuthClientSession pmTargetSession, AUTH_OPCODE pmOpcode)
 {
     if (singletonHandle == null)
     {
         singletonHandle = new AuthReceiveBufferHandler();
     }
     singletonHandle.handlerDic[pmOpcode](pmTargetSession);
 }
Exemple #2
0
 private void DoHandling()
 {
     while (this.working)
     {
         byte[] headBytes = GetBuffer(4);
         if (headBytes != null)
         {
             AUTH_OPCODE currentOpcode = (AUTH_OPCODE)headBytes[0];
             AuthReceiveBufferHandler.HandleAuthOpcode(this, currentOpcode);
             authReceiveBuffer.ResetBuffer();
         }
         Thread.Sleep(10);
     }
 }