Exemplo n.º 1
0
 public void OnUserChat(UserCommon.Message message)
 {
     if (chatCreateEvents != null)
     {
         chatCreateEvents.OnUserChat(message);
     }
 }
        public void Whisper(string toUserSessionId, UserCommon.Message msg)
        {
            var msgData    = Tool.SerializeHelp.Serialize <Message>(msg);
            var toUserData = Encoding.UTF8.GetBytes(toUserSessionId);

            SendData(UserOP.DoWhisper, toUserData, msgData);
        }
Exemplo n.º 3
0
 public void UserChat(UserCommon.Message message)
 {
     byte[] msgData = Tool.SerializeHelp.Serialize <Message>(message);
     this.SendData(UserOP.DoUserChat, msgData);
     log4net.LogManager.GetLogger(this.GetType()).Error(string.Format("我是{0},我要发送信息给:{1}:{2}", this.CurrentUser.UserName, ToUserAddr, ToUserPort));
 }
Exemplo n.º 4
0
 public void UserChat(UserCommon.Message message)
 {
     byte[] data = Tool.SerializeHelp.Serialize <Message>(message);
     userClientSession.SendData(UserCommon.UserOP.DoUserChat, data);
 }