getTimeout() public method

Returns the amount of time to wait for a new event each time the socket is polled.
public getTimeout ( ) : float
return float Amount of time in seconds
Example #1
0
 /**
  * Tests that a custom socket timeout can be set.
  *
  * @return void
  */
 public function testSetTimeout()
 {
     $timeout = 0.2;
     $this->driver->setTimeout($timeout);
     $this->assertequals($timeout, $this->driver->getTimeout());
 }