Examples of IMRTMPConnection


Examples of org.red5.server.net.mrtmp.IMRTMPConnection

    log.warn("Erhhh... Raw write. Shouldn't be in here!");
  }

  @Override
  public void write(Packet packet) {
    IMRTMPConnection conn = mrtmpManager.lookupMRTMPConnection(this);
    if (conn == null) {
      // the connect is gone
      log.debug("Client " + getId() + " is gone!");
      return;
    }
    if (!type.equals(PERSISTENT)) {
      mrtmpManager.associate(this, conn);
    }
    log.debug("Origin writing packet to client " + getId() + ":" + packet.getMessage());
    conn.write(getId(), packet);
  }
View Full Code Here

Examples of org.red5.server.net.mrtmp.IMRTMPConnection

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

Examples of org.red5.server.net.mrtmp.IMRTMPConnection

        // now we are disconnecting ourselves
        state.setState(RTMP.STATE_EDGE_DISCONNECTING);
      }
    }
    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

Examples of org.red5.server.net.mrtmp.IMRTMPConnection

    // TODO check permission per some rules
    return true;
  }
 
  protected void sendConnectMessage(RTMPConnection conn) {
    IMRTMPConnection mrtmpConn = mrtmpManager.lookupMRTMPConnection(conn);
    if (mrtmpConn != null) {
      mrtmpConn.connect(conn.getId());
    }
  }
View Full Code Here

Examples of org.red5.server.net.mrtmp.IMRTMPConnection

      mrtmpConn.connect(conn.getId());
    }
  }
 
  protected void forwardPacket(RTMPConnection conn, Packet packet) {
    IMRTMPConnection mrtmpConn = mrtmpManager.lookupMRTMPConnection(conn);
    if (mrtmpConn != null) {
      mrtmpManager.lookupMRTMPConnection(conn).write(conn.getId(), packet);
    }
  }
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.