equal
deleted
inserted
replaced
324 */ |
324 */ |
325 |
325 |
326 function _sock_open(&$connection) |
326 function _sock_open(&$connection) |
327 { |
327 { |
328 // Open connection |
328 // Open connection |
329 $connection = @fsockopen($this->host, $this->port); |
329 $connection = fsockopen($this->host, $this->port, $errno, $errstr); |
330 if ( !$connection ) |
330 if ( !$connection ) |
331 throw new Exception(__METHOD__ . ': Could not make connection'); |
331 throw new Exception(__METHOD__ . ": Could not make connection"); // to {$this->host}:{$this->port}: error $errno: $errstr"); |
332 |
332 |
333 // 1 = socket open |
333 // 1 = socket open |
334 $this->state = 1; |
334 $this->state = 1; |
335 } |
335 } |
336 |
336 |