Ignore:
Timestamp:
09/24/07 10:22:29 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/inc/class.Ujabber.inc.php

    r68 r72  
    115115   } 
    116116    
     117   function reconnect() 
     118   { 
     119      require_once("IMConfigure.php"); 
     120 
     121      $_transport = TRANSPORT_NON_SECURITY; 
     122      $_port = PORT_NON_SECURITY; 
     123 
     124                $SERVER = "127.0.0.1"; 
     125 
     126                $fp  = ""; 
     127                @$fp = stream_socket_client($_transport . "://" . $SERVER . ":" . $_port, $errno, $errstr, 10); 
     128 
     129                if ( $fp ) 
     130                { 
     131                        fwrite($fp, "GET /" . CONNECT . ";" . session_id() . " HTTP/1.1\r\nHost: " . $SERVER . ":" . $_port . "\r\nAccept: */*\r\n\r\n"); 
     132                        return 'true'; 
     133                } 
     134                else 
     135                        return 'false'; 
     136   }  
     137    
    117138   /* 
    118139    * Contacts 
Note: See TracChangeset for help on using the changeset viewer.