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