public MapClient(uint session) { this.SessionID = session; this.state = SESSION_STATE.NOT_IDENTIFIED; this.lastHeartbeatRequest = 0; this.taskHeartbeat = new SagaMap.Tasks.SystemTasks.CheckHeartbeat(this); }
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(); }
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(); } }