private void OnClientConnect(IAsyncResult async) { Session session = new Session(this._listener.EndAccept(async), "Client"); if (this.OnClientConnected != null) { this.OnClientConnected(session, this.Port); } this._listener.BeginAccept(new AsyncCallback(this.OnClientConnect), null); }
public MapleKorea(Session pSession, short _v, short _sv) : base("KMS", 1) { _session = pSession; this.RequiresVersion = -1; version = _v; subversion = _sv; Program.mTotalOnline = 0; Program.Connection.AmountOnline = 0; }
public void Release(Session session) { session.Disconnect(); }