public override void SendReliable(int messageType, object messageBody)
        {
            var item = VNetworkMessageItem.Allocate(messageType, messageBody, ReliableChannel);

            AddToSerializeQueue(item);
            item.ReleaseReference();
        }
        public static VNetworkMessageItem Allocate(int messageType, object messageBody, int channel)
        {
            VNetworkMessageItem rc = ObjectAllocatorHolder <VNetworkMessageItem> .Allocate();

            rc.Init(messageType, messageBody, channel);
            return(rc);
        }
 public override void SendRealTime(int messageType, object messageBody)
 {
     if (null != RealTimePeer)
     {
         var item = VNetworkMessageItem.Allocate(messageType, messageBody, RealTimeChannel);
         AddToSerializeQueue(item);
         item.ReleaseReference();
     }
     else
     {
         Logger.WarnFormat("channel:{0} drop realtime packet for realtime channel not connected", IdInfo());
     }
 }