Beispiel #1
0
 public static sender GetInst()
 {
     if (null == _sender)
     {
         _sender = new sender();
         SharedMemorySend.GetInst().Init();
     }
     return(_sender);
 }
Beispiel #2
0
        public bool SendSignl(int type, object obj)
        {
            if (null == obj)
            {
                return(false);
            }

            send_msg_struct Data = new send_msg_struct();

            Data.m_type = type;
            Data.m_obj  = obj;

            string msg = JsonConvert.SerializeObject(Data);

            return(SharedMemorySend.GetInst().StartSendData(msg));
        }
Beispiel #3
0
 public void Release()
 {
     SharedMemorySend.GetInst().UnInit();
 }