Inheritance: SagaLib.MultiRunTask
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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();
        }
Beispiel #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();
            }
        }