/*------------------------------------------------------------------*/
function connect($host,$port){
$this->call('debug',"Connecting to $host:$port"); /* DEBUG */
$this->sock=fsockopen($host,$port,$errno,$errstr,LOGIN_TIMEOUT) // toto je 283 riadok
or die("Could not reach host");
socket_set_blocking($this->sock,false); // allows multiple usage of instances
}
|