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