public static sender GetInst() { if (null == _sender) { _sender = new sender(); SharedMemorySend.GetInst().Init(); } return(_sender); }
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)); }
public void Release() { SharedMemorySend.GetInst().UnInit(); }