예제 #1
0
        public CUserToken()
        {
            this.cs_sending_queue = new object();

            this.message_resolver = new CMessageResolver();
            this.peer             = null;
            this.sending_list     = new List <ArraySegment <byte> >();
        }
예제 #2
0
        public CUserToken()
        {
            this.cs_sending_queue = new object();

            this.message_resolver = new CMessageResolver();
            this.peer             = null;
            this.sending_queue    = new Queue <CPacket>();
        }
예제 #3
0
        public CUserToken()
        {
            //Console.WriteLine(this + " CUserToken");
            this.lockQueue = new object();

            this.messageResolve = new CMessageResolver();
            this.peer           = null;
            this.sendingQueue   = new Queue <CPacket>();
        }
예제 #4
0
        public CUserToken(IMessageDispatcher dispatcher)
        {
            this.dispatcher       = dispatcher;
            this.cs_sending_queue = new object();

            this.message_resolver      = new CMessageResolver();
            this.peer                  = null;
            this.sending_list          = new List <ArraySegment <byte> >();
            this.latest_heartbeat_time = DateTime.Now.Ticks;

            this.current_state = State.Idle;
        }