Example #1
0
        //--//

        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);
            }
        }
Example #2
0
        //--//

        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);
            }
        }
Example #3
0
        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);
        }
        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);
        }