Ignore:
Timestamp:
02/01/08 10:48:43 (16 years ago)
Author:
niltonneto
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/inc/Jabber.abstract.php

    r151 r164  
    3232        const NOTICE  = 'NOTICE'; 
    3333 
    34         private final function _connect( $pUser = false, $pPassword = false ) 
     34        private final function _connect( $pUser = false, $pPassword = false, $pConnectionType = false ) 
    3535        { 
    3636                try 
     
    5353 
    5454                        $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); 
    5858 
    5959                        if ( $return == "new" ) 
     
    7272                        $this->_resource = $RESOURCE; 
    7373 
    74                         #var_dump($return); 
    75                         #exit; 
    7674                        return $return; 
    7775                } 
     
    8381        } 
    8482 
    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 
    9189                        if ( !$_connect ) 
    9290                                throw new Exception('[connect] #0. File: ' . __FILE__ . '  ::  ' . __LINE__); 
     
    275273                                $xml .= ($pStatus || $pShow || $pPriority) ? "</presence>" : ''; 
    276274                        } 
    277                          
     275 
    278276                        if ( $this->write($xml) === false ) 
    279277                                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.