Exemplo n.º 1
0
 private void IDSocket_ReceivedDatagram(object sender, NetFramework.DSCClientDataInEventArgs e)
 {
     m_sSockMsg = m_sSockMsg + Encoding.Default.GetString(e.Data);
     if (m_sSockMsg.IndexOf(')') > 0)
     {
         ProcessSocketMsg();
     }
 }
Exemplo n.º 2
0
        static unsafe void socket_ReceivedDatagram(object sender, NetFramework.DSCClientDataInEventArgs e)
        {
            var    HumanRcd = new THumDataInfo();
            int    a = 0, b = 0;
            string c = string.Empty;

            GetDBSockMsg(e.Data, 0, ref a, ref b, ref c, 0, true, "");
            string sDBMsg = string.Empty;

            c = HUtil32.GetValidStr3(c, ref sDBMsg, new string[] { "/" });

            int DataSize = Marshal.SizeOf(HumanRcd);


            MyTestInfo testinfo = new MyTestInfo();

            EncryptUnit.DecodeBuffer(c, ref HumanRcd);

            //TUserItem* bbbbbbbb= (TUserItem*)testinfo.UserItem;
        }
Exemplo n.º 3
0
        static unsafe void socket_ReceivedDatagram(object sender, NetFramework.DSCClientDataInEventArgs e)
        {
            var    HumanRcd = new THumDataInfo();
            int    a = 0, b = 0;
            string c = string.Empty;

            GetDBSockMsg(e.Data, 0, ref a, ref b, ref c, 0, true, "");
            string sDBMsg = string.Empty;

            c = HUtil32.GetValidStr3(c, ref sDBMsg, new string[] { "/" });
            int DataSize = Marshal.SizeOf(HumanRcd);

            if (HUtil32.GetCodeMsgSize(DataSize * 4 / 3) == c.Length)
            {
                EncryptUnit.DecodeBuffer <THumDataInfo>(c, ref HumanRcd);
            }
            //if (HumanRcd.Data.BagItems[0] != null)
            //{
            //    TUserItem hun = new TUserItem();
            //    int HumSize = Marshal.SizeOf(hun);
            //}
        }