Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is 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.