Пример #1
0
        public static void Send(SJFDataPack data)
        {
            if (!_isRunning)
            {
                return;
            }

            _client.Send(data.Encode());
        }
Пример #2
0
 private static void Client_MessageReceived(object sender, MessageEventArgs e)
 {
     if (e.IsBinary)
     {
         SJFDataPack data = new SJFDataPack(e.RawData);
         Common.AppData.CQLog.InfoReceive("SJF Socket", data.ToString());
         LuaEnv.LuaStates.Run("sjf", "SJFSocketData", new
         {
             e,
             data
         });
     }
 }