xmppclient : update domci

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5913 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2020-04-14 11:52:19 +00:00
parent ac218caaea
commit 0f49043c94

View File

@@ -32,17 +32,17 @@ class xmppclient
*/ */
private $debug = false; private $debug = false;
/* The object identifier increment /** The object identifier increment
*/ */
private $id = 0; private $id = 0;
/* The JID provided by the user /** The JID provided by the user
*/ */
private $jid = ""; private $jid = "";
/* Ratelimiter of send commands to server. Store the last timestamp, in /** Ratelimiter of send commands to server. Store the last timestamp, in
* microseconds. * microseconds.
*/ */
private $sendLastTime = 0; private $sendLastTime = 0;
// }}} // }}}
@@ -75,7 +75,7 @@ class xmppclient
"to='$domain' from='$client'>"; "to='$domain' from='$client'>";
$this->sock->connect (); $this->sock->connect ();
$this->debug ("Info: Connected to '$server:$port'"); $this->debug ("Info: Connected to '$server:$port'");
$this->send ($this->xmlStream); $this->send ($this->xmlStream);
$xml = $this->read (); $xml = $this->read ();
// Check if we can/must go in StartTLS // Check if we can/must go in StartTLS
preg_match ("#<starttls.*?".">(.*)<\/starttls>#", $xml, $tls); preg_match ("#<starttls.*?".">(.*)<\/starttls>#", $xml, $tls);
@@ -219,7 +219,7 @@ class xmppclient
// }}} // }}}
/** Send the data on socket, add the carriage return /** Send the data on socket, add the carriage return
* @param $msg The message to send * @param string $msg The message to send
*/ */
private function send ($msg) private function send ($msg)
// {{{ // {{{