Package org.red5.server.api

Examples of org.red5.server.api.IScopeHandler.disconnect()


      conns.remove(conn);
      IScopeHandler handler = null;
      if (hasHandler()) {
        handler = getHandler();
        try {
          handler.disconnect(conn, this);
        } catch (Exception e) {
          log.error("Error while executing \"disconnect\" for connection {} on handler {}. {}", new Object[]{conn, handler, e});
        }
      }
      if (conns.isEmpty()) {
View Full Code Here


    // remove it if it exists
    if (clients.remove(client)) {
      IScopeHandler handler = getHandler();
      if (handler != null) {
        try {
          handler.disconnect(conn, this);
        } catch (Exception e) {
          log.error("Error while executing \"disconnect\" for connection {} on handler {}. {}", new Object[] { conn, handler, e });
        }
        try {
          // there may be a timeout here ?
View Full Code Here

    if (state.getState() == RTMP.STATE_DISCONNECTED) {
      return;
    }
    IMRTMPConnection conn = mrtmpManager.lookupMRTMPConnection(this);
    if (conn != null) {
      conn.disconnect(getId());
    }
    handler.closeConnection(this);
  }
 
  synchronized public void realClose() {
View Full Code Here

      }
    }
    if (needNotifyOrigin) {
      IMRTMPConnection conn = mrtmpManager.lookupMRTMPConnection(this);
      if (conn != null) {
        conn.disconnect(getId());
      }
    }
    synchronized (state) {
      if (state.getState() == RTMP.STATE_DISCONNECTED) {
        return;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.