src/Net/XMPP/MessageSender.php
public function connect( Net_XMPP_JID $sender, $password )
	{
		$this->xmpp		= new Net_XMPP_XMPPHP_XMPP(
			$sender->getDomain(),
			$this->port,
			$sender->getNode(),
			$password,
			$sender->getResource() ? $sender->getResource() : $this->resource,
			$sender->getDomain(),
			$this->printLog,
			$this->logLevel
		);
		$this->xmpp->use_encyption	= $this->encryption;
		$this->xmpp->connect();
		$this->xmpp->processUntil( 'session_start' );
	}
public function connect( Net_XMPP_JID $sender, $password )
	{
		$this->xmpp		= new Net_XMPP_XMPPHP_XMPP(
			$sender->getDomain(),
			$this->port,
			$sender->getNode(),
			$password,
			$sender->getResource() ? $sender->getResource() : $this->resource,
			$sender->getDomain(),
			$this->printLog,
			$this->logLevel
		);
		$this->xmpp->use_encyption	= $this->encryption;
		$this->xmpp->connect();
		$this->xmpp->processUntil( 'session_start' );
	}
public function connect ( Net_XMPP_JID $ sender , $ password ) { $ this -> xmpp = new Net_XMPP_XMPPHP_XMPP ( $ sender -> getDomain ( ) , $ this -> port , $ sender -> getNode ( ) , $ password , $ sender -> getResource ( ) ? $ sender -> getResource ( ) : $ this -> resource , $ sender -> getDomain ( ) , $ this -> printLog , $ this -> logLevel ) ; $ this -> xmpp -> use_encyption = $ this -> encryption ; $ this -> xmpp -> connect ( ) ; $ this -> xmpp -> processUntil ( 'session_start' ) ; }
Establishs Connection to XMPP Server.
@access		public
@param		Net_XMPP_JID	$sender		JID of sender
@param		string			$password		Password of Sender
@param		int				$port			Port of XMPP Server
@return		void
Establishs Connection to XMPP Server .