public boolean bind() throws VersionException {
  boolean bound=false;
  if (m_isConnected)   return false;
  m_isConnected=true;
  m_protocol.addListener(ListenerIndex.PlayerSession,this);
  bound=m_protocol.bind();
  sendStopWarning();
  sendStopOnFault();
  sendEnumerateOverride();
  sendFailureNotify();
  sendInvokeSetters();
  sendSwfloadNotify();
  sendGetterTimeout();
  sendSetterTimeout();
  boolean responded=sendSquelch(true,Isolate.DEFAULT_ID);
  setPreference(SessionManager.PLAYER_SUPPORTS_GET,playerSupportsGet() ? 1 : 0);
  if (supportsConcurrency()) {
    sendConcurrentDebugger();
  }
  if (supportsWideLineNumbers()) {
    sendWideLineDebugger();
  }
  Thread t=new Thread(this,"SWF/SWD reader");
  t.setDaemon(true);
  t.start();
  if (!responded)   throw new VersionException();
  return bound;
}

public boolean bind ( ) throws VersionException { boolean bound = false ; if ( m_isConnected ) return false ; m_isConnected = true ; m_protocol . addListener ( ListenerIndex . PlayerSession , this ) ; bound = m_protocol . bind ( ) ; sendStopWarning ( ) ; sendStopOnFault ( ) ; sendEnumerateOverride ( ) ; sendFailureNotify ( ) ; sendInvokeSetters ( ) ; sendSwfloadNotify ( ) ; sendGetterTimeout ( ) ; sendSetterTimeout ( ) ; boolean responded = sendSquelch ( true , Isolate . DEFAULT_ID ) ; setPreference ( SessionManager . PLAYER_SUPPORTS_GET , playerSupportsGet ( ) ? 1 : 0 ) ; if ( supportsConcurrency ( ) ) { sendConcurrentDebugger ( ) ; } if ( supportsWideLineNumbers ( ) ) { sendWideLineDebugger ( ) ; } Thread t = new Thread ( this , "SWF/SWD reader" ) ; t . setDaemon ( true ) ; t . start ( ) ; if ( ! responded ) throw new VersionException ( ) ; return bound ; }
start up the session listening for incoming messages on the socket
