Ejemplo n.º 1
0
 private void PrintSendMsg(byte[] totalbyte)
 {
     try
     {
         string stmp    = ProtoMng.Byte2Hex(totalbyte);
         string tmpstmp = " >> [" + stmp + "]\r\nSend Message Length >> " + totalbyte.Length + "\r\n";
     }
     catch (Exception ex)
     {
         Console.WriteLine("Secession.PrintSendMsg - " + ex.Message);
     }
 }
Ejemplo n.º 2
0
 private void RecievedMsg(byte[] rmsg)
 {
     try
     {
         string smsg = ProtoMng.Byte2Hex(rmsg);
         this.MainTB.Text += " << [" + smsg + "]\r\nReceive Message Length >> " + rmsg.Length + "\r\n";
         this.SetTBScroll();
     }
     catch (Exception ex)
     {
         Console.WriteLine("RecvMsgs.RecievedMsg - " + ex.Message);
     }
 }
Ejemplo n.º 3
0
        private string LogFileWrite(byte[] totalbyte)
        {
            try
            {
                string stmp = ProtoMng.Byte2Hex(totalbyte);

                return(stmp);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Secession.LogFileWrite - " + ex.Message);
                return(string.Empty);
            }
        }
Ejemplo n.º 4
0
        private void PrintSendMsg(byte[] totalbyte)
        {
            try
            {
                string stmp    = ProtoMng.Byte2Hex(totalbyte);
                string tmpstmp = " >> [" + stmp + "]\r\nSend Message Length >> " + totalbyte.Length + "\r\n";

                if (recvform.Visible)
                {
                    recvform.MainTextBox += tmpstmp;
                    recvform.SetTBScroll();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("WmsgSend.PrintSendMsg - " + ex.Message);
            }
        }
Ejemplo n.º 5
0
        private void RecievedMsg(byte[] rmsg)
        {
            string smsg = ProtoMng.Byte2Hex(rmsg);

            recvmng.ParseData(rmsg);
        }