File: includes/functions_jabber.php
Unmodified
Added
Modified
Removed
Line 50 | Line 50 |
---|
var $log_array;
var $features = array();
|
var $log_array;
var $features = array();
|
| /** @var string Stream close handshake */ private const STREAM_CLOSE_HANDSHAKE = '</stream:stream>';
|
/** * Constructor
| /** * Constructor
|
Line 58 | Line 61 |
---|
* @param int $port Jabber server port * @param string $username Jabber username or JID * @param string $password Jabber password
|
* @param int $port Jabber server port * @param string $username Jabber username or JID * @param string $password Jabber password
|
* @param boold $use_ssl Use ssl
| * @param bool $use_ssl Use ssl
|
* @param bool $verify_peer Verify SSL certificate * @param bool $verify_peer_name Verify Jabber peer name * @param bool $allow_self_signed Allow self signed certificates
| * @param bool $verify_peer Verify SSL certificate * @param bool $verify_peer_name Verify Jabber peer name * @param bool $allow_self_signed Allow self signed certificates
|
Line 183 | Line 186 |
---|
$this->send_presence('offline', '', true); }
|
$this->send_presence('offline', '', true); }
|
$this->send('</stream:stream>');
| $this->send(self::STREAM_CLOSE_HANDSHAKE); // Check stream close handshake reply $stream_close_reply = $this->listen();
if ($stream_close_reply != self::STREAM_CLOSE_HANDSHAKE) { $this->add_to_log("Error: Unexpected stream close handshake reply ”{$stream_close_reply}”"); }
|
$this->session = array(); return fclose($this->connection); }
| $this->session = array(); return fclose($this->connection); }
|