added a class prefix, refactored log-class, finished scopes for methods in xmlstream and xmpp
git-svn-id: svn://netflint.net/xmpphp@30 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
parent
6dae72dd78
commit
a0f0173d55
@ -4,8 +4,7 @@
|
|||||||
error_reporting(E_ALL & E_STRICT);
|
error_reporting(E_ALL & E_STRICT);
|
||||||
|
|
||||||
include("XMPPHP/XMPP.php");
|
include("XMPPHP/XMPP.php");
|
||||||
//$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'user', 'password', 'xmpphp', 'gmail.com', $printlog=true, $loglevel=Logging::LEVEL_INFO);
|
$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'user', 'password', 'xmpphp', 'gmail.com', $printlog=true, $loglevel=Logging::LEVEL_INFO);
|
||||||
$conn = new XMPPHP_XMPP('jabber.wentz.it', 5222, 'dev', 'd3vd3v', 'xmpphp', 'jabber.wentz.it', $printlog=true, $loglevel=XMPPHP_Log::LEVEL_VERBOSE);
|
|
||||||
$conn->connect();
|
$conn->connect();
|
||||||
while(!$conn->isDisconnected()) {
|
while(!$conn->isDisconnected()) {
|
||||||
$payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start'));
|
$payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start'));
|
||||||
|
@ -5,8 +5,7 @@ error_reporting(E_ALL & E_STRICT);
|
|||||||
|
|
||||||
include("XMPPHP/XMPP.php");
|
include("XMPPHP/XMPP.php");
|
||||||
|
|
||||||
//$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=Logging::LEVEL_INFO);
|
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=Logging::LEVEL_INFO);
|
||||||
$conn = new XMPPHP_XMPP('jabber.wentz.it', 5222, 'dev', 'd3vd3v', 'xmpphp', 'jabber.wentz.it', $printlog=true, $loglevel=XMPPHP_Log::LEVEL_VERBOSE);
|
|
||||||
$conn->connect();
|
$conn->connect();
|
||||||
$conn->processUntil('session_start');
|
$conn->processUntil('session_start');
|
||||||
$conn->presence();
|
$conn->presence();
|
||||||
|
Loading…
Reference in New Issue
Block a user