//--// void Worker() { Microsoft.SPOT.Messaging.EndPoint ep = new Microsoft.SPOT.Messaging.EndPoint(m_selector, m_id); Microsoft.SPOT.Messaging.Message msg; while ((msg = ep.GetMessage(-1)) != null) { ProcessMessage(msg); } }
public RpcClient(Type selector, uint id) { uint idClient; lock (typeof(RpcClient)) { idClient = s_idNext++; } m_selector = selector; m_id = id; m_ep = new Microsoft.SPOT.Messaging.EndPoint(typeof(RpcClient), idClient); }