Changeset 164 for trunk/instant_messenger/inc/Jabber.abstract.php
- Timestamp:
- 02/01/08 10:48:43 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/inc/Jabber.abstract.php
r151 r164 32 32 const NOTICE = 'NOTICE'; 33 33 34 private final function _connect( $pUser = false, $pPassword = false )34 private final function _connect( $pUser = false, $pPassword = false, $pConnectionType = false ) 35 35 { 36 36 try … … 53 53 54 54 $return = fread($socket, 4096); 55 #echo __FUNCTION__ . "<br>\n";56 #var_dump($return); 57 #exit;55 fwrite($socket, $pConnectionType); 56 57 $return = fread($socket, 4096); 58 58 59 59 if ( $return == "new" ) … … 72 72 $this->_resource = $RESOURCE; 73 73 74 #var_dump($return);75 #exit;76 74 return $return; 77 75 } … … 83 81 } 84 82 85 protected function connect( $pUser = false, $pPassword = false)86 { 87 try 88 { 89 $_connect = $this->_connect($pUser, $pPassword );90 83 protected function connect($pUser = false, $pPassword = false, $pConnectionType = false) 84 { 85 try 86 { 87 $_connect = $this->_connect($pUser, $pPassword, $pConnectionType); 88 91 89 if ( !$_connect ) 92 90 throw new Exception('[connect] #0. File: ' . __FILE__ . ' :: ' . __LINE__); … … 275 273 $xml .= ($pStatus || $pShow || $pPriority) ? "</presence>" : ''; 276 274 } 277 275 278 276 if ( $this->write($xml) === false ) 279 277 throw new Exception('[presence] #1 it isn\'t possible send presence for ' . $this->_server . '. File: ' . __FILE__ . ' :: ' . __LINE__);
Note: See TracChangeset
for help on using the changeset viewer.