示例#1
0
        internal void TerminateApp()
        {
            var srpc = new Srpc.Message();

            srpc.Set(Srpc.Key.Method, "MainLoop_EndLoop");
            Send(srpc);
        }
示例#2
0
        void OnConnectedMainThread()
        {
            _form.SetConnected(_bConnected);

            var srpc = new Srpc.Message();

            srpc.Set(Srpc.Key.Method, Protocol.Hello.Method);
            Send(srpc);
        }
示例#3
0
        internal void Send(Srpc.Message msg, SrpcCompletion fComplete)
        {
            if (fComplete != null)
            {
                string sSrpcId = "_" + _nSrpcId++;
                msg.Set("SrpcId", sSrpcId);
                _completions.Add(sSrpcId, fComplete);
            }

            Send(msg.ToString() + "\n");
        }