예제 #1
0
        public int MaxIdleTime = 3;     //The maximum idle time is connected, and the timeout is disconnected.

        public override void WriteTo(ApolloBufferWriter write)
        {
            write.Write(OpenID);
            write.Write(Url);
            write.Write(EnableManualUpdate);
            write.Write(MaxIdleTime);
        }
예제 #2
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(ErrorCode);
     writer.Write(Reason);
     writer.Write(Extend);
     writer.Write(Extend2);
     writer.Write(Extend2);
 }
예제 #3
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(ErrCode);
     writer.Write(ErrMsg);
     writer.Write(Token);
     writer.Write(PassTime);
     writer.Write(JoinTime);
 }
예제 #4
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(Channel);
     writer.Write(OpenId);
     writer.Write(UserId);
     writer.Write(Uid);
     writer.Write(tokenList);
 }
예제 #5
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(MaxBufferSize);
     writer.Write(MaxSendMessageSize);
     writer.Write(MaxRecvMessageSize);
     writer.Write(EncMethod);
     writer.Write(KeyMakingMethod);
     writer.Write(DH);
     writer.Write(Timeout);
     writer.Write(LoopInterval);
     writer.Write(ClearBufferWhenReconnect);
     writer.Write(InfoType);
 }
예제 #6
0
        public string UserData;      //Custom data


        public override void WriteTo(ApolloBufferWriter writer)
        {
            writer.Write(OpenId);
            writer.Write(TreeId);
            writer.Write(LeafId);
            writer.Write(LastLoginTime);
            writer.Write(RoleId);
            writer.Write(RoleLevel);
            writer.Write(RoleName);
            writer.Write(UserData);
        }
예제 #7
0
        public override void WriteTo(ApolloBufferWriter writer)
        {
            writer.Write(Type);

            switch (Type)
            {
            case TreeNodeType.Category:
            {
                writer.Write(Category);
                break;
            }

            case TreeNodeType.Leaf:
            {
                writer.Write(Leaf);
                break;
            }

            default:
                return;
            }
        }
예제 #8
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(Type);
     writer.Write(ErrCode);
     writer.Write(ErrMsg);
     writer.Write(CurPosition);
     writer.Write(TotalCount);
     writer.Write(EstimatedTime);
 }
예제 #9
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(Url);
     writer.Write(AppId);
     writer.Write(OpenId);
     writer.Write(Token);
     writer.Write(AuthType);
     writer.Write(Channel);
 }
예제 #10
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(DetailState);
     writer.Write(Carrier);
     writer.Write(CarrierCode);
     writer.Write(SSID);
     writer.Write(BSSID);
     writer.Write(CurrentAPN);
 }
예제 #11
0
        protected override void BeforeEncode(ApolloBufferWriter writer)
        {
            writer.Write(type);

            writer.Write(Id);
            writer.Write(ParentId);
            writer.Write(Name);
            writer.Write(Tag);
            writer.Write(CustomData);
        }
예제 #12
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(currentIP);
     writer.Write(currentServerID);
 }
예제 #13
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(RoleInfos);
 }
예제 #14
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     base.WriteTo(writer);
     writer.Write(TypeId);
     writer.Write(ZoneId);
 }
예제 #15
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(TreeList);
 }
예제 #16
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     base.WriteTo(writer);
     writer.Write(ServiceName);
 }
예제 #17
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(Flag);
     writer.Write(Url);
     writer.Write(RoleCollection);
 }
예제 #18
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(PluginName);
     writer.Write(GameId);
     writer.Write(GameKey);
 }
예제 #19
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write((int)RouteType);
     writer.Write(AllowLost);
 }
예제 #20
0
        public Int64 Expire;         // seconds

        public override void WriteTo(ApolloBufferWriter writer)
        {
            writer.Write(Type);
            writer.Write(Value);
            writer.Write(Expire);
        }
예제 #21
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(Position);
     writer.Write(QueueLen);
     writer.Write(EstimateTime);
 }
예제 #22
0
 protected override void BeforeEncode(ApolloBufferWriter writer)
 {
     writer.Write(Action);
 }
예제 #23
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(ChannelID);
     writer.Write(OpenID);
 }
예제 #24
0
 public override void WriteTo(ApolloBufferWriter writer)
 {
     writer.Write(Attr1);
     writer.Write(Attr2);
     writer.Write(UserData);
 }