Exemple #1
0
	public void releaseNet() {
		if (netSession != null) {
			netSession.releaseSession(sessionId);
			netSession.releaseNet();
			netSession = null;
		}
		// releaseResource();
	}
Exemple #2
0
	public void sendData(IoBuffer packet) {
		if (netSession != null) {
			netSession.sendData(sessionId, packet);
		} else {
			PacketBufferPool.freePacketBuffer(packet);
		}
	}
Exemple #3
0
	public boolean isNetConnected() {
		return netSession != null && netSession.isConnected();
	}
Exemple #4
0
	public void bindPhoneRemote(int eventId, String phone, String pwd, String vcode) {
		if (netSession != null) {
			netSession.bindPhone(this, eventId, phone, pwd, vcode);
		}
	}
Exemple #5
0
	/**
	 * 反向注册验证码
	 */
	public void reverseSecurityCode() {
		if (netSession != null) {
			netSession.reverseSecurityCode();
		}
	}
Exemple #6
0
	public void validateSecurityCoide(int eventId, String securityCode) {
		if (netSession != null) {
			netSession.validateSecurityCode(eventId, securityCode);
		}
	}
Exemple #7
0
	public void validatePhoneRemote(int eventId, String phone, boolean binded) {
		if (netSession != null) {
			netSession.validatePhone(this, eventId, phone, binded);
		}
	}
Exemple #8
0
	/**
	 * 修改密码
	 * 
	 * @param eventId
	 *            事件编号
	 * @param oldPwd
	 *            旧密码
	 * @param newPwd
	 *            新密码
	 */
	public void alterPasswordRemote(int eventId, String oldPwd, String newPwd) {
		if (netSession != null) {
			netSession.alterPassword(this, eventId, oldPwd, newPwd);
		}
	}
Exemple #9
0
	/**
	 * 验证兑换码
	 * 
	 * @param eventId
	 *            事件编号
	 * @param exchangeCode
	 *            兑换码
	 * @type 类别
	 */
	public void validateExchangeRemote(int eventId, String exchangeCode) {
		if (netSession != null) {
			netSession.validateExchange(this, eventId, exchangeCode);
		}
	}
Exemple #10
0
	public void pushData() {
		if (netSession != null) {
			netSession.pushData();
		}
	}
Exemple #11
0
	public final void close(boolean immediately) {
		if (netSession != null) {
			netSession.close(immediately);
		}
	}