li3

NewsDocumentationVersionsPresentationsCommunityDevelopment
  • Documentation
  • Framework API (1.3.x)
  • lithium
  • net
  • socket
  • Stream
  • timeout()

Contents

  • ../

lithium\net\socket\Stream::timeout()

Implements lithium\net\Socket::timeout()
public method

Set timeout period on a stream.

Parameters

  • integer $time

    The timeout value in seconds.

Returns

boolean

Links

  • PHP Manual: stream_set_timeout()

Source

	public function timeout($time) {
		if (!is_resource($this->_resource)) {
			return false;
		}
		return stream_set_timeout($this->_resource, $time);
	}
GitHub / Twitter / Reddit / Stack Overflow
Testimonial Image

Not sure what those other
guys were talking about but –
hey can you guys be quiet?
I have the microphone. It's my
turn to talk. What? No, you can
grab a snack after I am done…

Pretty much everything is (c) 2009-2025 and beyond, the Union of RAD.