Inheritance: SagaLib.MultiRunTask
示例#1
0
 public MapClient(uint session)
 {
     this.SessionID            = session;
     this.state                = SESSION_STATE.NOT_IDENTIFIED;
     this.lastHeartbeatRequest = 0;
     this.taskHeartbeat        = new SagaMap.Tasks.SystemTasks.CheckHeartbeat(this);
 }
示例#2
0
 public MapClient(uint session)
 {
     this.SessionID = session;
     this.state = SESSION_STATE.NOT_IDENTIFIED;
     this.lastHeartbeatRequest = 0;
     this.taskHeartbeat = new SagaMap.Tasks.SystemTasks.CheckHeartbeat(this);
 }
示例#3
0
        public MapClient( Socket mSock, Dictionary<ushort, Packet> mCommandTable ,uint session)
        {
            this.SessionID = session;
            this.netIO = new NetIO(mSock, mCommandTable, this, MapClientManager.Instance);
            this.state = SESSION_STATE.NOT_IDENTIFIED;

            this.lastHeartbeatRequest = 0;
            this.taskHeartbeat = new SagaMap.Tasks.SystemTasks.CheckHeartbeat( this );

            if( this.netIO.sock.Connected ) this.OnConnect();
        }
示例#4
0
        public MapClient(Socket mSock, Dictionary <ushort, Packet> mCommandTable, uint session)
        {
            this.SessionID = session;
            this.netIO     = new NetIO(mSock, mCommandTable, this, MapClientManager.Instance);
            this.state     = SESSION_STATE.NOT_IDENTIFIED;

            this.lastHeartbeatRequest = 0;
            this.taskHeartbeat        = new SagaMap.Tasks.SystemTasks.CheckHeartbeat(this);

            if (this.netIO.sock.Connected)
            {
                this.OnConnect();
            }
        }