예제 #1
0
        public ClientReceivingThread(ClientThread clientThread, ReceivingQManager receivingQManager)
        {
            this.clientThread      = clientThread;
            this.receivingQManager = receivingQManager;
            bRunFlag = true;

            ThreadStart threadStart = new ThreadStart(run);
            Thread      thread      = new Thread(threadStart);

            thread.Start();
        }
예제 #2
0
 private void initReceiver()
 {
     if (receiver != null)
     {
         receivingQManager     = new ReceivingQManager(configLoader.getReceivingQueueSize(), configLoader.getHeartbeatInterval(), configLoader.getHeartbeatCount());
         clientReceivingThread = new ClientReceivingThread(this, receivingQManager);
     }
     else
     {
         bInitStatus = false;
     }
 }