You are here

function Net_Socket::writeLine in Flickr API 5

Write a line of data to the socket, followed by a trailing "\r\n".

@access public

Return value

mixed fputs result, or an error

File

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

Class

Net_Socket
Generalized Socket class.

Code

function writeLine($data) {
  if (!is_resource($this->fp)) {
    return $this
      ->raiseError('not connected');
  }
  return fwrite($this->fp, $data . "\r\n");
}