XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Transport_IoBuffer Interface Reference
Inheritance diagram for Swift_Transport_IoBuffer:
Inheritance graph

Public Member Functions

 initialize (array $params)
 
 readLine ($sequence)
 
 setParam ($param, $value)
 
 setWriteTranslations (array $replacements)
 
 terminate ()
 
- Public Member Functions inherited from Swift_InputByteStream
 bind (Swift_InputByteStream $is)
 
 commit ()
 
 flushBuffers ()
 
 unbind (Swift_InputByteStream $is)
 
 write ($bytes)
 
- Public Member Functions inherited from Swift_OutputByteStream
 read ($length)
 
 setReadPointer ($byteOffset)
 

Public Attributes

const TYPE_PROCESS = 0x0010
 
const TYPE_SOCKET = 0x0001
 

Detailed Description

Definition at line 20 of file IoBuffer.php.

Member Function Documentation

Swift_Transport_IoBuffer::initialize ( array  $params)

Perform any initialization needed, using the given $params. Parameters will vary depending upon the type of IoBuffer used.

Parameters
array$params

Implemented in Swift_Transport_StreamBuffer.

Swift_Transport_IoBuffer::readLine (   $sequence)

Get a line of output (including any CRLF). The $sequence number comes from any writes and may or may not be used depending upon the implementation.

Parameters
int$sequenceof last write to scan from
Returns
string

Implemented in Swift_Transport_StreamBuffer.

Swift_Transport_IoBuffer::setParam (   $param,
  $value 
)

Set an individual param on the buffer (e.g. switching to SSL).

Parameters
string$param
mixed$value

Implemented in Swift_Transport_StreamBuffer.

Swift_Transport_IoBuffer::setWriteTranslations ( array  $replacements)

Set an array of string replacements which should be made on data written to the buffer. This could replace LF with CRLF for example.

Parameters
string[]$replacements

Implemented in Swift_Transport_StreamBuffer.

Swift_Transport_IoBuffer::terminate ( )

Perform any shutdown logic needed.

Implemented in Swift_Transport_StreamBuffer.

Member Data Documentation

const Swift_Transport_IoBuffer::TYPE_PROCESS = 0x0010

A process buffer with I/O support

Definition at line 28 of file IoBuffer.php.

const Swift_Transport_IoBuffer::TYPE_SOCKET = 0x0001

A socket buffer over TCP

Definition at line 25 of file IoBuffer.php.


The documentation for this interface was generated from the following file: