Beanstalk\Connection\
Stream
¶Class Methods
Stream::close
– Close the stream connectionStream::isTimedOut
– Has the connection timed out or otherwise gone away?Stream::open
– Open the streamStream::read
– Read the next $bytes bytes from the streamStream::readLine
– Read the next line from the streamStream::write
– Write data to the streamBeanstalk\Connection\Stream::
close
()¶Description: | Close the stream connection |
---|---|
Returns: | null |
Beanstalk\Connection\Stream::
isTimedOut
()¶Description: | Has the connection timed out or otherwise gone away? |
---|---|
Returns: | boolean |
Beanstalk\Connection\Stream::
open
($host, $port, $timeout)¶Description: | Open the stream |
---|---|
Parameters: |
|
Returns: | boolean |
Beanstalk\Connection\Stream::
read
($bytes)¶Description: | Read the next $bytes bytes from the stream |
---|---|
Parameters: |
|
Returns: | string |
Beanstalk\Connection\Stream::
readLine
()¶Description: | Read the next line from the stream |
---|---|
Returns: | string |
Beanstalk\Connection\Stream::
write
($data)¶Description: | Write data to the stream |
---|---|
Parameters: |
|
Returns: | integer Number of bytes written |