You are here

function Net_Socket::gets in Flickr API 5

Get a specified line of data

@access public

Return value

$size bytes of data from the socket, or a PEAR_Error if not connected.

File

phpFlickr/PEAR/Net/Socket.php, line 247

Class

Net_Socket
Generalized Socket class.

Code

function gets($size) {
  if (!is_resource($this->fp)) {
    return $this
      ->raiseError('not connected');
  }
  return @fgets($this->fp, $size);
}