protected function init($ftkey)
  {
    if(strlen($ftkey) != 32 && strlen($ftkey) != 16)
    {
      throw new TeamSpeak3_Adapter_FileTransfer_Exception("invalid file transfer key format");
    }

    $this->getProfiler()->start();
    $this->getTransport()->send($ftkey);

    TeamSpeak3_Helper_Signal::getInstance()->emit("filetransferHandshake", $this);
  }
protected function init($ftkey)
  {
    if(strlen($ftkey) != 32 && strlen($ftkey) != 16)
    {
      throw new TeamSpeak3_Adapter_FileTransfer_Exception("invalid file transfer key format");
    }

    $this->getProfiler()->start();
    $this->getTransport()->send($ftkey);

    TeamSpeak3_Helper_Signal::getInstance()->emit("filetransferHandshake", $this);
  }
protected function init ( $ ftkey ) { if ( strlen ( $ ftkey ) != 32 && strlen ( $ ftkey ) != 16 ) { throw new TeamSpeak3_Adapter_FileTransfer_Exception ( "invalid file transfer key format" ) ; } $ this -> getProfiler ( ) -> start ( ) ; $ this -> getTransport ( ) -> send ( $ ftkey ) ; TeamSpeak3_Helper_Signal :: getInstance ( ) -> emit ( "filetransferHandshake" , $ this ) ; }
Sends a valid file transfer key to the server to initialize the file transfer.

@param  string $ftkey
@throws TeamSpeak3_Adapter_FileTransfer_Exception
@return void
Sends a valid file transfer key to the server to initialize the file transfer .