Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.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.