コード例 #1
0
ファイル: BTcpClient.cs プロジェクト: hpbaotho/thanhtuan
        ///
        /// Deserializes and outputs the received object
        ///
        public void Done(DataPackage data, IAsyncResult result)
        {
            DataPackage send = data.DeSerialize();
            //int pID = BitConverter.ToInt32(send.buffer, 0);
            byte t = send.content;
            Console.WriteLine(t.ToString());

            updateForm = Handlers.UpdateFormHandler.GetInstance();

            updateForm.Process(t);
            allDone.Set(); //signals thread to continue so it sends another message
        }
コード例 #2
0
ファイル: BTcpClient.cs プロジェクト: hpbaotho/thanhtuan
 public void init_data(byte i)
 {
     m_data = new DataPackage();
     m_data.header = i;
 }