Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Copyright 2013-2017 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Copyright: 2013-2017 Horde LLC
License: http://www.horde.org/licenses/lgpl21 LGPL 2.1
File Size: 222 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Imap_Client_Socket_Connection_Socket:: (3 methods):
  write()
  writeLiteral()
  read()


Class: Horde_Imap_Client_Socket_Connection_Socket  - X-Ref

PHP stream connection to the IMAP server.

NOTE: This class is NOT intended to be accessed outside of the package.
There is NO guarantees that the API of this class will not change across
versions.

write($data, $eol = false)   X-Ref
Writes data to the IMAP output stream.

param: string $data  String data.
param: boolean $eol  Append EOL?

writeLiteral($data, $length, $binary = false)   X-Ref
Writes literal data to the IMAP output stream.

param: mixed $data      Either a stream resource, or Horde_Stream
param: integer $length  The literal length.
param: boolean $binary  If true, this is binary data.

read($size = null)   X-Ref
Read data from incoming IMAP stream.

param: integer $size  UNUSED: The number of bytes to read from the
return: Horde_Imap_Client_Tokenize  The tokenized data.