Esempio n. 1
0
	public void releaseNet() {
		if (netSession != null) {
			netSession.releaseSession(sessionId);
			netSession.releaseNet();
			netSession = null;
		}
		// releaseResource();
	}
Esempio n. 2
0
	public void sendData(IoBuffer packet) {
		if (netSession != null) {
			netSession.sendData(sessionId, packet);
		} else {
			PacketBufferPool.freePacketBuffer(packet);
		}
	}
Esempio n. 3
0
	public boolean isNetConnected() {
		return netSession != null && netSession.isConnected();
	}
Esempio n. 4
0
	public void bindPhoneRemote(int eventId, String phone, String pwd, String vcode) {
		if (netSession != null) {
			netSession.bindPhone(this, eventId, phone, pwd, vcode);
		}
	}
Esempio n. 5
0
	/**
	 * 反向注册验证码
	 */
	public void reverseSecurityCode() {
		if (netSession != null) {
			netSession.reverseSecurityCode();
		}
	}
Esempio n. 6
0
	public void validateSecurityCoide(int eventId, String securityCode) {
		if (netSession != null) {
			netSession.validateSecurityCode(eventId, securityCode);
		}
	}
Esempio n. 7
0
	public void validatePhoneRemote(int eventId, String phone, boolean binded) {
		if (netSession != null) {
			netSession.validatePhone(this, eventId, phone, binded);
		}
	}
Esempio n. 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);
		}
	}
Esempio n. 9
0
	/**
	 * 验证兑换码
	 * 
	 * @param eventId
	 *            事件编号
	 * @param exchangeCode
	 *            兑换码
	 * @type 类别
	 */
	public void validateExchangeRemote(int eventId, String exchangeCode) {
		if (netSession != null) {
			netSession.validateExchange(this, eventId, exchangeCode);
		}
	}
Esempio n. 10
0
	public void pushData() {
		if (netSession != null) {
			netSession.pushData();
		}
	}
Esempio n. 11
0
	public final void close(boolean immediately) {
		if (netSession != null) {
			netSession.close(immediately);
		}
	}