Beispiel #1
0
        protected override void FromApp(LJC.FrameWork.SocketApplication.Message message, LJC.FrameWork.SocketApplication.Session session)
        {
            if (message.MessageHeader.MessageType == 10240)
            {
                var msg = new LJC.FrameWork.SocketApplication.Message
                {
                    MessageHeader = message.MessageHeader,
                };
                msg.MessageHeader.MessageTime = DateTime.Now;
                msg.SetMessageBody(message.MessageHeader.TransactionID);
                session.SendMessage(msg);

                //Console.WriteLine("收到消息:" + msg.MessageHeader.TransactionID);

                return;
            }

            base.FromApp(message, session);
        }
Beispiel #2
0
 static void server_OnAppMessage(LJC.FrameWork.SocketApplication.Session arg1, LJC.FrameWork.SocketApplication.Message arg2)
 {
     Console.WriteLine(arg2.MessageHeader.TransactionID);
 }